must be superuser to use mount

Vladimir A. Pavlov pv4 at bk.ru
Wed Sep 20 12:04:09 PDT 2006


On Wednesday 20 September 2006 22:08, Dan Nicholson wrote:
> On 9/20/06, Vladimir A. Pavlov <pv4 at bk.ru> wrote:
> > >
> > > /dev/sda1 /mnt/flash vfat  noauto,users,umask=000 0 0
> > >
> > > I'm using LFS-6.2, maybe a permissions or group issue?
> 
> I could be wrong, but you might still need your user to be in the
> "disk" group to be able to perform the mount. Check the device
> permissions of /dev/sda1.
> 
> > Here is my "ls -l /bin/mount":
> >
> > -rwsr-xr-x 1 root root 52384 Jun  9 00:13 /mnt/lfs/bin/mount
> >
> > Note, it's SUID.
> 
> Mount is suid, but it still checks the permissions of the executing
> user. 

It doesn't seem to.

$ grep cdrom /etc/fstab 
/dev/hdc      /mnt/cdrom      iso9660         noauto,user,ro       0 0
$ ls -l /dev/hdc 
brw-rw---- 1 root cdrom 22, 0 Sep 21  2006 /dev/hdc
$ ls -l /bin/mount
-rws--x--x 1 root root 91492 Mar 15  2006 /bin/mount
$ id
uid=1000(pv) gid=100(users) groups=100(users)

And I do can mount /mnt/cdrom though I don't belong to cdrom group.

-- 
Nothing but perfection
pv



More information about the blfs-support mailing list