Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

How-To smbfs: smbmnt must be installed suid root

Posted by chantra on May 31st, 2006

Quite often, when using program such as smb4k, I encountered the following error:

smbmnt must be installed suid root for direct user mounts

This happens because some linux distribution does not configure smbfs properly such as a normal user can mount samba files.

This how-to will show how to simply resolve this issue.


smb4k, a QT base samba client uses smbfs in order to mount the remote samba shares under a normal user home directory. If smbmnt and smbumount are not set uid root, smb4k will fail mounting the remote directory.

The message is explicit enough, you need to set uid root those files. Here is what you need to type in a console to resolve this:

$ sudo chmod u+s `which smbmnt`

in order to be able to mount the shared directory , and:

$ sudo chmod u+s `which smbumount`

in order to be able to umount the shared directory.

That's it, you can now mount and use the remote files as a normal user, and use those files like if there were on your local disk.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>