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 |
I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireless and with wire NIC cards, it is possible to assign reserve ip address for both NIC card, but same host name?
How often do you use grep command and how in Linux operating system?
What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc..?
How do I find hostname in linux?
What are grep patterns called?
What is the symbol of linux?
What is makefile in unix?
What does chmod 755 do?
How do I find my hostname in linux?
What command you execute to display the last five commands you have entered?
Write a cron entry for the following scenario:- At 10:30 AM for every Sunday of every 1st month of a quarter.
Explain the linux directory commands along with the description?