1 firstline="## Installed from ws(winshare)##"
2 lastline="################################"
3 varsudo="${firstline}\n### SAMBA ###\nCmnd_Alias SAMBA = /bin/mount, /bin/umount, /sbin/mount.cifs\nALL ALL=(ALL) NOPASSWD: SAMBA\n${lastline}\n"
6 echo -e "$varsudo" >> /etc/sudoers
9 /etc/sudoers file was configured to allow all users to mount and unmount samba shares.
15 sed -i "/$firstline/,/$lastline/ d" /etc/sudoers
19 /etc/sudoers was changed. The automatic configuration made by winshare during installation was removed.
24 # vim:set ts=2 sw=2 et: