Share your knowledge at the LQ Wiki.
Go Back > Blogs > dr_agon
User Name


Rate this Entry

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:
%users  ALL=NOPASSWD: /bin/mount, /bin/umount
'users' is a group name.
Now I can use
$ sudo mount ......
without password.

Be careful about possible security risk!
For more informations: man sudoers.
Posted in Uncategorized
Views 843 Comments 0
« Prev     Main     Next »


All times are GMT -5. The time now is 11:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration