View previous topic :: View next topic |
Author |
Message |
slickben24 n00b
Joined: 08 May 2005 Posts: 38
|
Posted: Tue Sep 27, 2005 4:36 am Post subject: I want to stab my fstab.... |
|
|
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 |
|
|
kinkos Apprentice
Joined: 07 Feb 2005 Posts: 235 Location: Hoboken, NJ
|
Posted: Tue Sep 27, 2005 4:41 am Post subject: |
|
|
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 |
|
|
slickben24 n00b
Joined: 08 May 2005 Posts: 38
|
Posted: Tue Sep 27, 2005 4:49 am Post subject: |
|
|
what do you mean by that? is there another solution (a more correct one)?
thanks
ben |
|
Back to top |
|
|
Jake Veteran
Joined: 31 Jul 2003 Posts: 1132
|
Posted: Tue Sep 27, 2005 4:54 am Post subject: |
|
|
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 |
|
|
kinkos Apprentice
Joined: 07 Feb 2005 Posts: 235 Location: Hoboken, NJ
|
Posted: Tue Sep 27, 2005 4:59 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|