On Sun, Feb 20, 2005 at 02:17:14PM +0200, Cesar Martinez Izquierdo wrote:
> El Domingo 20 Febrero 2005 06:47 escribiste:
> > > umount manpage says that /sbin/umount.<filesystem> will be used, but
> > > either it is not true, or another previous problem happens that prevents
> > > umount.smbfs to be used.

> > If you depend on smbmount's suid bit to mount a share, you will not be able
> > to unmount it using umount -- only using smbumount.  Because umount is
> > itself suid, it must implement its own security checks before turning over
> > control to the per-fstype helper program, so only shares mounted as
> > standard user mounts can be unmounted this way.

> Hi, /etc/fstab :
> //mizar/cemariz$ /mnt/upv smbfs 
> defaults,user,noauto,username=cemariz,workgroup=ALUMNO,ip=mizar.cc.upv.es 0 0

> Then:
> $ mount /mnt/upv
> Password:
> $

> (it's correctly mounted, as normal user, using mount, not smbmount).

> Then:

> $ umount /mnt/upv
> umount: only root can unmount //mizar/cemariz$ from /mnt/upv

Ok, confirmed, mount.smbfs is responsible for writing out the /etc/mtab
entry and does not include anything saying what user is allowed to unmount
it.  This is a bug in smbfs, not in mount.

-- 
Steve Langasek
postmodern programmer

Attachment: signature.asc
Description: Digital signature

Reply via email to