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
What does && mean in linux?
What is the command can be run to remove all the rules in an iptable table?
What are linux commands?
Why we use pwd command in linux?
How do I check cpu usage?
Explain shift command of linux?
How do makefiles work?
What is mask and umask in linux?
How do I find the umask value in linux?
Explain about lprm job number?
What is the syntax of mkdir?
Which command is used to uncompress gzip files?
What is command grouping?
What does f mean linux?
What is the use of ls command?