how to give a normal user reboot and shutdown permission?
Plz also mention the step.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kumaresanchandran
shutdown: shutdown -h
go to root directory type: init 0
reboot : reboot
go to root directory type: init 6
| Is This Answer Correct ? | 2 Yes | 13 No |
How do I find the console in linux?
What is the most graceful way to get to run level single user mode?
Explain difference between nfs soft and hard mouniting points?
what is linux utilities and editor
How does case sensitivity affect the way you use commands?
What does (cd dir && command) do?
What does cd do in linux?
if i run ls command it will show me the junk output what is problem and how to resolve it
What are the basic commands for user management?
What are vim commands?
How can you check the amount of lines in a file?
What is cd command used for?