how to give a normal user reboot and shutdown permission?
Plz also mention the step.
Answer Posted / dave_chamoli82
how to give permission to a user using "VISUDO"
# useradd add
# visudo
# User_Alias ADMINS = jsmith, mikem
User_Alias ADD = test
## Command Aliases
## These are groups of related commands...
Cmnd_Alias ADDCMD = /usr/sbin/useradd, /usr/bin/passwd,
/usr/bin/reboot [TYPE THIS LINE]
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
add ALL = ADDCMD [TYPE THIS LINE]
:wq [SAVE & EXIT]
# su - add
$ sudo /usr/sbin/useradd u2
$ /usr/bin/reboot [now your system reboot]
| Is This Answer Correct ? | 34 Yes | 1 No |
Post New Answer View All Answers
How do I find hostname in linux?
Explain the ‘ls’ command in linux
How do I permanently set ulimit in linux?
How is grep so fast?
Which command will show you free/used memory?
Why bash is used in linux?
What are the commands in linux?
Which command is used to delete a group?
Is llvm a compiler?
What is the command to see on which port which service is running?
What Command used to lock user password?
Explain about lprm job number?
How do make computer faster?
What is cd in cmd?
What are the command prompt commands?