This is a discussion on Re: mount options not clear within the Linux Administration forums, part of the Linux Forums category; carex wrote: > (For info I am using debian/etch) > > Here what I have in /etc/fstab > /...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
carex wrote:
> (For info I am using debian/etch) > > Here what I have in /etc/fstab > /dev/sdb9 /mnt/sdb9 ext3 rw,users,noauto 0 0 > > If sdb9 is not mounted this is what I see in /mnt > drwxr-xr-x 2 root root 4096 2007-04-22 15:43 sdb9 > > When sdb9 is mounted by user carex: > carex@triac:/mnt$ mount -v /dev/sdb9 > /dev/sdb9 on /mnt/sdb9 type ext3 (rw,noexec,nosuid,nodev) > carex@triac:/mnt$ > I get this in /mnt > drwxr-xr-x 3 carex carex 4096 2007-04-22 15:26 sdb9 > > Until here no problem. > Everything seems to go as planned by the manual. > > But when sdb9 is mounted by user test00 > test00@triac:/mnt$ mount -v /dev/sdb9 > /dev/sdb9 on /mnt/sdb9 type ext3 (rw,noexec,nosuid,nodev) > I get this in /mnt > test00@triac:/mnt$ ls -al > drwxr-xr-x 3 carex carex 4096 2007-04-22 15:26 sdb9 > test00@triac:/mnt$ > > And when user test00 does umount the device > test00@triac:/mnt$ umount /dev/sdb9 > test00@triac:/mnt$ ls -al > drwxr-xr-x 2 root root 4096 2007-04-22 15:43 sdb9 > test00@triac:/mnt$ > > My questions: > > a)when sdb9 is mounted by test00 why is the device sdb9 still owned > by the user carex ?? > I think the device sdb9 should be owned by user test00 ??? > (by the user who actually does mount the device) > > b)how can user test00 use sdb9 in rw mode ??? (and other regular users) > > > Many thanks, > > carex Hi Carex, There is a lot of cool information about your mounted drives in /etc/mtab cat /etc/mtab | grep -i sdb9 If you mount sdb9 manually it has to either be in fstab or be mounted by root (or sudo). If you mount as root (not is fstab) you have to use the gid and uid mount options (man mount) for the user(s) to be able to use it. HTH, -T |
![]() |
| Thread Tools | |
| Display Modes | |
|
|