Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems getting regular users access to partitions
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
synapticsponge
n00b
n00b


Joined: 27 Nov 2003
Posts: 16

PostPosted: Sat Feb 07, 2004 9:41 pm    Post subject: Problems getting regular users access to partitions Reply with quote

Hi,

I've got a second hard drive in my system from a former windows computer. I ran cfdisk on it and found the two partitions on it to be hdb2 and hdb5. Did a little asking, a little reading, and added the following two lines to my fstab:

Code:

/dev/hdb5      /mnt/win_c   vfat      defaults,users,rw,noauto      0 0
/dev/hdb2      /mnt/win_d   vfat      defaults,users,rw,noauto      0 0


So, first problem is I still can't get any regular user accounts to mount the partitions. Second, when I mount it via root (mount /dev/hdb2 /mnt/win_d), regular users still don't have access to the partition.

Did I do something wrong with fstab or am I totally off base with how to get my regular user account access to these partitions?

Thanks for any help.
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Sat Feb 07, 2004 9:51 pm    Post subject: Reply with quote

You probably need to add a umask option to those lines. On my vfat partition, I have this line:
Code:
/dev/hde8               /home/music     vfat            noatime,umask=000  0 0

The umask flag the way I have it set will give the partition the permissions 0777 (-rwxrwxrwx). This may or may not be what you want. To give it permissions of 0755 (-rwxr-xr-x), give it a umask of 022. The umask is the bit mask of the permissions which are not present.
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
synapticsponge
n00b
n00b


Joined: 27 Nov 2003
Posts: 16

PostPosted: Mon Feb 09, 2004 3:16 pm    Post subject: Reply with quote

Thanks for your help. Your fix worked perfectly.
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