Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I want to stab my fstab....
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
slickben24
n00b
n00b


Joined: 08 May 2005
Posts: 38

PostPosted: Tue Sep 27, 2005 4:36 am    Post subject: I want to stab my fstab.... Reply with quote

Here's the deal: i've got a second hard drive of storage i want to be able to read and write to as a user. i also need access to the /root as the user, so i can get to mnt/storage in some programs.

heres my root line:
/dev/hda4 / ext3 noatime 0 1
every time i try and get it so i can read/write it as a user, it won't boot. so im wary to touch this now.


heres the other hard drive line:
/dev/hdb5 /mnt/storage vfat noatime,user,rw 0 0
now this mounts fine in user, but the folders all show up as unknown type in nautilus

help me clear this up!
thanks
ben
Back to top
View user's profile Send private message
kinkos
Apprentice
Apprentice


Joined: 07 Feb 2005
Posts: 235
Location: Hoboken, NJ

PostPosted: Tue Sep 27, 2005 4:41 am    Post subject: Reply with quote

A quick kludge is to make the mountpoint owned by the user, i've had to do this for too many things *wince*
_________________
Open Source, Open Mind
Back to top
View user's profile Send private message
slickben24
n00b
n00b


Joined: 08 May 2005
Posts: 38

PostPosted: Tue Sep 27, 2005 4:49 am    Post subject: Reply with quote

what do you mean by that? is there another solution (a more correct one)?
thanks
ben
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Tue Sep 27, 2005 4:54 am    Post subject: Reply with quote

kinkos wrote:
A quick kludge is to make the mountpoint owned by the user, i've had to do this for too many things *wince*

That shouldn't do anything. When you mount a filesystem, / of the mounted filesystem replaces the mount point

slickben24, your vfat filesystem doesn't support UNIX permissions, so it can only have one owner and group. Set this with the uid and gid mount options.
Code:
/dev/hdb5 /mnt/storage vfat noatime,user,uid=1000,gid=100,rw 0 0

You can verify the uid and gid by running "id" as your normal user.

EDIT: naturally root will be able to write to the vfat filesystem because root is all-powerful unless you're using something like selinux or grsecurity (you'd know if you were)
Back to top
View user's profile Send private message
kinkos
Apprentice
Apprentice


Joined: 07 Feb 2005
Posts: 235
Location: Hoboken, NJ

PostPosted: Tue Sep 27, 2005 4:59 am    Post subject: Reply with quote

Jake wrote:
vfat filesystem doesn't support UNIX permissions, so it can only have one owner and group. Set this with the uid and gid mount options.
Code:
/dev/hdb5 /mnt/storage vfat noatime,user,uid=1000,gid=100,rw 0 0

You can verify the uid and gid by running "id" as your normal user.

EDIT: naturally root will be able to write to the vfat filesystem because root is all-powerful unless you're using something like selinux or grsecurity (you'd know if you were)

Wow, so thats how to properly fix it...
_________________
Open Source, Open Mind
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