Originally Posted by
Mr_Bumpy
2. (optional) Make it so you can mount shares using sudo without having to enter your password. Do this by running
sudo visudo from a terminal, and adding the following lines at the end:
Code:
fred ALL=NOPASSWD:/bin/mount
fred ALL=NOPASSWD:/bin/umount
Never ever ever perform step 2. This is a potentially large security risk. To make the share mountable by anyone without sudo, all you have to do is add the line to /etc/fstab, and include the "users" option like so:
Code:
//winbox/myfiles /media/myfiles cifs users,credentials=/home/fred/.auth.winbox.fred,noperm,uid=fred,gid=fred
Then this will work:
Code:
mount /media/myfiles
For more information on how to mount shares using CIFS (as Mr_Bumpy shows), follow the howto in the 2nd link in my sig, complete with troubleshooting tips.
Bookmarks