How to allow ordinary (not root) users to mount/unmount everything.
Posted 10-06-2008 at 01:50 PM by dr_agon
applies to: linux, debian based (Mepis), mount, sudo
While testing many things often I have to mount/unmount resources, and I became tired of using 'su' and supplying password.
The easy but not very secure solution is to allow some (or all) users to execute mount/unmount as root without being prompted for password by adding them to /etc/sudoers file like this:
Code:
%users ALL=NOPASSWD: /bin/mount, /bin/umount
Now I can use
Code:
$ sudo mount ......
Be careful about possible security risk!
For more informations: man sudoers.