ok, well, i'm finally getting a chance to try all this out and having
Cmnd_Alias MOUNT =/bin/mount, /bin/umount
your_user_name ALL=NOPASSWD: MOUNT
but that produced a request for a password. if i leave it blank and
hit return it takes a second and returns me to my prompt without doing
anything. if i give it the password, i get:
'Sorry, user <username> is not allowed to execute '/bin/mount //path/
to/share /path/to/mount' as root on localhost.'
i did a full reboot after adding the lines to the /etc/sudoers file.
when i try jschiwal's solution i am allowed to mount and unmount but
am still asked for a password. i can leave the password blank and hit
return and it still mounts, but how do i make it not ask?
and if it has to ask but will accept a blank password, what do i put
into the script to just tell it to hit return?