Mounting by users

Urban Widmark urban at svenskatest.se
Mon Oct 16 17:02:54 GMT 2000


On Mon, 16 Oct 2000, Eduardo Diaz Uriarte wrote:

> smbmnt must be installed suid root for direct user mounts (500,500)
> smbmnt failed: 1
> mount.smbfs: ioctl failed, res=-1
> 
> I have changed smbmnt to suid. But now I get this

You also need to make smbumount suid so that they can unmount when they
want to.


> smbmnt failed: 1
> mount.smbfs: ioctl failed, res=-1

smbmnt only allows a user to mount if he owns the directory he is
mounting, for security reasons. Otherwise someone might replace /usr/bin
with a /usr/bin of their own choosing (or /etc, or ...)

Each user needs his own mountpoint (and their own /etc/fstab entry).
smbmnt should probably be changed to accept /etc/fstab entries marked with
user as valid authorization.

/Urban





More information about the samba mailing list