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 many cmd commands are there?
What is bash history linux?
How to write the output of a command to a file?
What is the use of cp p command?
What is sudo bash command?
Suppose you try to delete a file using the rm command and the deletion fails. What could be the possible reason?
what command would you use to find the hostname of the server if yo ony have the ip address?
What is a ulimit in unix?
What is FC command?
what is the command to make a process to run in the background from foreground?
How do you open a command prompt when issuing a command?
What is parallel ssh?