Questions tagged [visudo]

visudo edits the sudoers file in a safe fashion

visudo is a command-line utility that allows editing of the /etc/sudoers file in a safe fashion. It opens /etc/sudoers, using the vi editor's interface by default (although this can be changed by setting the shell's EDITOR environment variable to a different text editor), prevents multiple simultaneous edits with locks, performs sanity checks and checks for parse errors.

Source: [Wikipedia] - visudo (command)

86 questions
3
votes
0 answers

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 when I search I get this whereis visudo visudo:…
user235365
  • 31
  • 1
  • 2
1
vote
1 answer

What is the purpose of group privileges in sudoers file?

I removed my regular user from the sudoers file but it is still part of sudo group which has all privileges granted in the sudoers file. When I try to execute any command in sudo from my regular user it says that user is not listed in the sudoers. I…
enu
  • 177
0
votes
1 answer

Changing visudo caused a problem with sudo

I added something in visudo and now when I want to run sudo it gives me the following error: Sorry, user reza is not allowed to execute '/bin/su' as root. What should I do?
0
votes
1 answer

problems with sudoers

if I run sudo visudo I get this page: How can I fix?
linofex
  • 554
  • 9
  • 28
0
votes
1 answer

visudo crashing on making changes

I am attempting to add an 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 exactly the command above should be placed?
Macenbro
  • 67
  • 3
  • 10
0
votes
1 answer

What should /etc/sudoers contain normally?

When I run sudo visudo , what should it contain? Please give me an example of what it should have normally for a sudo user.