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 is the fastest way to enter a series of commands from the command-line in linux
How commands work in linux?
In my linux machine, i lost /etc/passwd file and /etc/shadow file, then how can i recover it?
What is the use of cp p command?
difference between patches and packages? and how to upgrade patches
What is FC command?
What is ulimit command?
How do I permanently set ulimit in linux?
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
How do you run a command for a limited time?
What is phony in makefile?
How do I check disk space in linux?