Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Restricting access to partitions to certain users only?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Sat Feb 28, 2004 10:59 am    Post subject: Restricting access to partitions to certain users only? Reply with quote

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
View user's profile Send private message
chtof
n00b
n00b


Joined: 29 Aug 2003
Posts: 62
Location: France

PostPosted: Sat Feb 28, 2004 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Sat Feb 28, 2004 12:45 pm    Post subject: Reply with quote

Thanks a lot, this work great
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum