visudo edits the sudoers file in a safe fashion

learn more… | top users | synonyms

2
votes
3answers
382 views

Run a specific sudo command without a password in Ubuntu 13.10

I would like to run vagrant without being prompted for a password. As this post suggests, I used visudo to add the following line to my sudoers file. john-moz ALL=(ALL) NOPASSWD: /usr/bin/vagrant ...
1
vote
1answer
184 views

Mount samba share at login using startup script (not fstab)

Background I'm trying to automatically execute a command that mounts a password protected Samba share when my user logs in. The catch is, I share my laptop with another user, and I don't want the ...
0
votes
1answer
23 views

Shutdown launcher withouth password

I added new launcher to panel using this command for shutdown: gksu telinit 0 When I wanted to get rid of constant inserting of password, I did not succeed. I opened visudo and added line "username" ...
1
vote
2answers
165 views

Xubuntu visudo sudoers edit not working

I have been trying to specify a script that I would like to run without being prompted for a password. After a number of google and stack searches and a number of different syntax changes, I still ...
1
vote
0answers
20 views

Lost visudo - I seem to have lost visudo, to my great surprise

Lost visudo I seem to have lost visudo, to my great surprise. I'm trying to add to /etc/sudoers or /etc/sudoers.d but when I try and run visudo as root I get this sudo: visudo: command not found ...
1
vote
1answer
39 views

Changed suoders to an account that doesn't exist, what should I do

I've installed ubuntu 12.04 with single user, let's call him user1. I then created a new user, let's call him user2. I wanted user2 to be the only user with sudo rights, so I removed all users from ...
35
votes
3answers
4k views

What are the differences between sudo, su, visudo, chroot, and gksu?

What are the differences between sudo, su, visudo, chroot, and gksu ?
0
votes
1answer
36 views

Visudo not working for specified files

I am trying to give sudo ability without the need of passwords to specific files. So far I have: employee ALL=(ALL:ALL) NOPASSWD: /home/file_name The file has a simple chmod command, in the bash ...
0
votes
1answer
95 views

sudo visudo question

I am attempting to add the entry to 'visudo: admin ALL=(ALL) /bin/kill I have attempted to make changes to this in the past but crashed the visudo file. Can someone assist in telling me where ...
0
votes
0answers
26 views

Reboot to Windows Shell

I am trying to write a shell script that restarts my computer after setting "grub-reboot 1". I'm also trying to avoid anoying password questions, so i added my bootwindows script to visudo. But when I ...
1
vote
3answers
94 views

Do I have to do a new installation?

I was in the /etc/sudoers and might done something wrong, beacuse after I couldn´t use the commandline again. Maybe i deleted sudo in /etc/sudoers. It said something was wrong i line 28. What can I do ...
7
votes
1answer
220 views

How disable mysql command in sudoers file?

How can I disable /usr/bin/mysql command in sudoers file? I've tried to use it this way: %tailonly ALL=!/usr/bin/mysql But when I access user 'tailonly' of group 'tailonly', this command is still ...
2
votes
1answer
182 views

Is there a GUI to `visudo`?

Quite simply, is there a GUI to visudo I can recommend to other users, and use for myself? I have to set up a system where over 50 users have different sudo privileges and I need to juggle them all.
-6
votes
1answer
2k views

How to sudo visudo without a password, remove all prompts for password [closed]

Websites tell me to use sudo when I have no password, usually tell me one of two things. It is bad security Or use 'sudo visudo' and the %admin ALL=(ALL) NOPASSWD: ALL line I would like to not ...