sudo without password works not for mount/umount
Title edited because of this.
I want to grant the rights to run some programs that need root privilegues to my normal user (tobi), using sudo without password authentification for ease of use. And here I am running into problems. To make things clear, here is my sudoers file: Code:
# /etc/sudoers For example, if I try Code:
sudo reboot Note for the mount/umount-commands: I work a lot with many different ISO-files, so an approach using fstab will not work for me. I searched the net and for similar threads here, but found nothing that helped me. I appreciate if anybody can point me into the right direction what I am making wrong here. |
Take a look at the Tag_Spec section in the sudoers man file.
While what you have may work fine, it isn't quite the format they use. See if that helps you any. HTH Dave |
Try changing to the path to
Code:
/sbin/mount |
Quote:
Code:
# /etc/sudoers Quote:
Thanks for your answers. Anybody a different idea? |
Quote:
Quote:
Furthermore Quote:
|
I don't know what happened. In my desperation to get this working I started visudo, deleted the whole content of the sudoers-file and rewrote it. It looks now like this
Code:
Defaults env_reset Can anybody help me with the mount and umount command? P.S.:I changed the title of the thread according to the new situation. |
Quote:
Code:
which mount Code:
which umount I added the following line to my sudoers file just to test out the command and it works just fine. Code:
andrew ALL=(ALL) NOPASSWD: /bin/mount, /bin/umount |
Thanks, I don't know what happened with my eyes and fingers, that I typed the /usr before them and then overlooked it.
Maybe I should sleep a little bit more. Thanks, a lot. |
All times are GMT -5. The time now is 10:16 PM. |