On Sat, Feb 19, 2005 at 10:17:38PM +0200, Cesar Martinez Izquierdo wrote: > On Fri, 2004-12-17 at 23:33, Andries Brouwer wrote: > > umount uses /sbin/umount.TYPE > > So, if smbumount is to be used, then either /sbin/umount.smbfs must > > be a symlink to smbumount (if the calling sequence is the same), > > or /sbin/umount.smbfs must be a shell script that calls smbumount.
> Hi, I've tried to create a /sbin/umount.smbfs symlink to /usr/bin/smbumount, > and also to create a shell script that calls smbmount, but it doesn't work > for me, I get the same error: > $ umount /mnt/upv > umount: only root can unmount //mizar/cemariz$ from /mnt/upv > 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. -- Steve Langasek postmodern programmer
signature.asc
Description: Digital signature

