Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

It is possible somehow restrict access to a partition to a specific user in Ubuntu? I am using Ubuntu x64 11.10, I made 2 accounts, both accounts belong to the Administrators group. And I have 3 partitions, on first is OS formatted in ext4, the second one is swap, and the third one is partition designed for data storage, formatted in NTFS, now I want to restrict access to the third one for second user, or hide it. And by the way, the NTFS partition is set to mount automatically at start up.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Create a group called ntfs. Then edit the group to add all of the users that you want to be able to access the ntfs partition.

sudo addgroup <groupname> ( ntfs )

Then

    sudo chgrp ntfs /media/disk (ntfs )
    sudo chmod 770 /media/disk (ntfs )

To add a new user to a existing group you would do this:

sudo adduser  (username)  ntfs

For More Detail plz have look

https://help.ubuntu.com/community/AddUsersHowto

http://ubuntuforums.org/showthread.php?t=1100120

share|improve this answer
    
Thanks, I'll try and I'll came up with an answer –  Denees Feb 2 '12 at 8:07
    
The solution has no changes :), the disk is still accessible from second user –  Denees Feb 2 '12 at 12:16
    
add details and update your ? –  One Zero Feb 2 '12 at 12:25
    
which details? the ntfs partition is still accessible, I made all the steps which you described below –  Denees Feb 2 '12 at 12:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.