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 |
Compare between SYS V launched processes and Xinetd processes in Linux.
What would you do when all the processess hangs and there is no other option in unix?
What is the role of case sensitivity in affecting the way commands are used?
You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?
What does uname do in linux?
How do I check command history?
What are the basic command in linux?
What does the ps command do in linux?
How can I create a file with cmd?
What does pwd mean in linux?
in LINUX,What are two subtle differences in using the more and the pg commands?
What daemon is used for scheduling of the commands?