Re: mount options not clear

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 > /...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-28-2007
ToddAndMargo
 
Posts: n/a
Default Re: mount options not clear

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:24 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0