I'm trying create a line in /etc/sudoers that allows members of group "users" to mount cifs shares anywhere inside their own home directory. In my first attempt I tried:
%users ALL=/bin/mount -t cifs /home, /bin/umount /home
...which admittedly doesn't restrict them to their own home directory. As a user when I try the command:
sudo mount -t cifs ~/mount //hostname/sharename -o username=myuserid,domain=mydomain
...I get prompted for the password then receive error:
Sorry, user myuserid is not allowed to execute '...command...' as root on servername.
Is there any way to coerce sudoers to specify what I want?