LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > dr_agon
User Name
Password

Notices


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

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

  



All times are GMT -5. The time now is 02:14 PM.

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