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 |
What u know abt tar Command?
How do you find out the server processes running?
What is the difference between cd and cd in linux?
what do know about commands?
What is df command in linux?
How commands work in linux?
How many types of commands are there in linux?
Explain about kernel file in linux?
How do I find command history in linux?
How do I run bash on windows?
What is the ipconfig command for linux?
Brief about FTP hostname?