Questions tagged [visudo]

visudo is the command used to edit the sudoers file

visudo is the command used to edit the file

35 questions
-1
votes
1 answer

What does the first star (*) mean in visudo command restriction

Restriction example in visudo : (ALL) NOPASSWD: (ALL) /bin/cp * /var/www/html/* I understand most of it, its just the first star driving me nuts. My best guess is , its either for command options or source path. Thanks!
Adrian
  • 3
  • 1
-1
votes
1 answer

How to run the bash command as a system user without giving that user the right to run commands as any user

I have written a python script which includes this line: response = subprocess.check_output(['/usr/bin/sudo /bin/su - backup -c "/usr/bin/ssh -q -o StrictHostKeyChecking=no %s bash -s" <<\'EOF\'\nPATH=/usr/local/bin:$PATH\nmvn --version|grep -i…
Rumbles
  • 1,367
  • 3
  • 16
  • 40
-1
votes
1 answer

How to give a particular use's privileges to another user in Debian?

Lets say in my Debian PC have 2 users called cat and dog. I want to use sudo setup to give dog's privileges to cat. So cat can do what dogs do. I'm new to sudo stuff but I tried below config. It gives below error when cat trying to access dog's…
Yasiru G
  • 6,886
  • 6
  • 23
  • 43
-2
votes
1 answer

How to 'sudo' without 'newgrp'

I have two CentOS 6.8 servers running on VirtualBoxes. On one, I can login as a regular user then use "sudo" to run administrator commands. I just add "sudo" to the front and all works as expected. On the other, I need to first run "newgrp wheel",…
UncaAlby
  • 5,146
  • 1
  • 16
  • 19
-3
votes
1 answer

Permission denied after visudo nopasswd set for port command

I am trying to prevent bash to ask for sudo permission to run the port command (OSX packet manager) adding it to visudo. I basically tried to follow this SO thread but I still get an error manfredo@cave05:~$ port selfupdate ---> Updating MacPorts…
Manfredo
  • 1,760
  • 4
  • 25
  • 53
1 2
3