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.
Asked
Active
Viewed 604 times
1 Answers
2
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

One Zero
- 27,153
- 26
- 88
- 109
-
The solution has no changes :), the disk is still accessible from second user – Denees Feb 02 '12 at 12:16
-
add details and update your ? – One Zero Feb 02 '12 at 12:25
-
which details? the ntfs partition is still accessible, I made all the steps which you described below – Denees Feb 02 '12 at 12:43