Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4691  / 2 Years ago, fri, august 12, 2022, 2:23:04

I need to bypass sudo for a group of commands for a certain user so the command is just executed without using the sudo


More From » sudo

 Answers
0

You want to allow a user to reboot without using the sudo cammand, add the command to /etc/sudoers file : add this line to the file :



your-username ALL=NOPASSWD: reboot


A more detailed description can be found here: How do I run specific sudo commands without a password?


[#25515] Sunday, August 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oileweaty

Total Points: 337
Total Questions: 108
Total Answers: 105

Location: Western Sahara
Member since Mon, May 3, 2021
3 Years ago
oileweaty questions
Thu, Jul 1, 21, 01:57, 3 Years ago
Wed, Nov 24, 21, 11:48, 2 Years ago
Sat, May 14, 22, 00:50, 2 Years ago
;