View previous topic :: View next topic |
Author |
Message |
trumee Guru
Joined: 02 Mar 2003 Posts: 551 Location: London,UK
|
Posted: Sat Feb 28, 2004 10:59 am Post subject: Restricting access to partitions to certain users only? |
|
|
Hi,
I have a couple of partitions which contains sensitive data which i myself want to access alone. Currently the partition is mounted as
"/dev/hda3 /mnt/ddrive vfat quiet,umask=0 0 0" in fstab so that everybody can see them. Is it possible to deny access to this partition to everybody except me and root?
Thanks |
|
Back to top |
|
|
chtof n00b
Joined: 29 Aug 2003 Posts: 62 Location: France
|
Posted: Sat Feb 28, 2004 12:21 pm Post subject: |
|
|
Root can access everywhere on your system then there is no problem. To allow you to access this part, just change your fstab file as follow :
Code: | /dev/hda3 /mnt/ddrive vfat quiet,uid=1000,umask=077 |
uid is ths uid of your user. To know what is your UID, have a look in /etc/passwd file or do id when you are connected with this user.[/code] |
|
Back to top |
|
|
trumee Guru
Joined: 02 Mar 2003 Posts: 551 Location: London,UK
|
Posted: Sat Feb 28, 2004 12:45 pm Post subject: |
|
|
Thanks a lot, this work great |
|
Back to top |
|
|
|