permission settings issue....Help needed....
i have an issue to solve.. i am using mandriva linux 2009.. i have two user accounts sa User1 and User2... plus i have 2 windows partitions under /mnt. the issue is i have to set the user1 to access the /mnt but user2 should not have permission to access the /mnt..
how can i set this?? i need to do this on terminal preferably.. thanx in advance |
Add uid=XXX (where XXX is the uid of User1) in the options part of /etc/fstab in the lines you use to mount the 2 windows partitions. Or from cli:
Code:
mount -t ntfs /dev/sda1 /mnt/win1 -o uid=XXX |
this is my current fstab .. watchanges i should make??
Quote:
|
setfacl -m u:user2:--- /mnt. Wont this work?
|
Since you didn't say the partitions you want to restrict and the uid of User1, to do this for /mnt/win_c for example you should modify fstab like this:
Code:
UUID=18C9-7D9A /mnt/win_c vfat uid=XXX,umask=0,iocharset=utf8 0 0 |
ok..well .. the situation is i need to set the permissions for the users like this:-
user1:- permission to access the windows partitions.. user2:-should be blocked from accessing the win partitions.. just tell me wats the edition i should make in the fastab?? |
Use the above example to restrict access to all 3 of your win partitions. Just replace XXX with the uid of the User1
|
All times are GMT -5. The time now is 05:29 AM. |