smbmount returns "operation not permitted"
Posted
by
Petriborg
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Petriborg
Published on 2010-12-12T20:24:44Z
Indexed on
2011/01/03
6:58 UTC
Read the original article
Hit count: 249
I use the smbfs tools package to mount my SMB shares. I wrote a quick script to mount the share:
#!/bin/sh
/usr/bin/smbmount "\\\\somehost.local\\hostshare" /media/hostshare -o user=smbuser,dom=WORKGROUP,uid=localuser,gid=localgroup
This script used to work in 9.10 when called by the "localuser" account, but in my fresh-installed 10.04 it fails giving me the error:
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
The /media/hostshare directory is empty and has these perms:
drwxrwxr-x 2 localuser localgroup 4096 2010-12-12 12:04 hostshare/
The "localuser" is in these groups:
localgroup adm dialout cdrom plugdev lpadmin admin sambashare
Any idea what is going on here? Google seems to suggest that the "sticky" bit needs to be set on /sbin/mount.cifs
/sbin/mount.smbfs
and /sbin/umount.cifs
Is this a bug?
© Ask Ubuntu or respective owner