exec of files off cifs mounts can fail

Steve French smfrench at gmail.com
Wed Nov 28 13:17:31 MST 2012

Discovered something interesting testing cifs.  When you mount cifs
with "user=your-username" instead of "username=your-username" you can
confuse mount about whether to allow executing files on the mount, at
least mount from util-linux 2.21.2 (libmount 2.21.0: selinux, debug)

Basically if you mount with "user=" this version of mount assumes it
is a non-root initiated mount and turns off exec (also sets nosuid and
nodev).  To workaround this if executing a program fails on a cifs
mount, you can mount specifying "username=" instead of "user=" or you
can simply append "exec" to the mount options.



More information about the samba-technical mailing list