If you want normal user to be able to mount network share such as samba/cifs or 
nfs...
you can add the following to the very end of /etc/sudoers file and restart.


# allow members of CDROM group to mount without prompting for root password
%cdrom ALL = NOPASSWD:NOEXEC: /bin/mount, /bin/umount, /sbin/mount.cifs, 
/sbin/mount.nfs


then add "sudo mount" etc etc to the users mount script.

example of samba mount

sudo mount.cifs //NetworkDrive/"Folder" "MountPoint" -o
ip=NetworkServerIPaddress,username="$UN",password="$PW",nounix,noserverino,file_mode=0777,dir_mode=0777


It will NOT ask them for the root password, as the sudoers file stops
them from needing it.

this works great for me..
The way I see it, if they have cdrom permissions and are sitting at my PC.. 
I trust them enough to mount a network share.

Please advise if it's a gaping hole in my security.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/657900

Title:
  mount.cifs: permission denied: no match for /home/myuser/mydir/myshare
  found in /etc/fstab

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to