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 |
Why do we use cmake?
Explain about lprm job number?
How do I test my cpu speed?
How you will create new folder / directories and how to remove file and folder in linux?
In /boot/grub/grub.conf file there is a line kernel /vmlinuz-version ro root=/dev/sda2, What is the meaning of "/" before vmlinuz? Pls explain?
what is initrd image?
Is a command a full sentence?
What will happen when a system call is encountered in a user program?
i am prepairing for 2+ yrs exp in oracle/unix production support, which topics should i cover in unix/linux and sql plz help
How do you create a blank file in linux?
How do I change shell in linux?
How do I list all processes in linux?