how to give a normal user reboot and shutdown permission?
Plz also mention the step.
Answer Posted / 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 |
Post New Answer View All Answers
What does chmod 755 do?
Explain about communication features in UNIX?
How do I check my cpu cores?
Suppose I lost a root password and I need to give it, I treid to change it through single usermode even though I am not get a password, then what is the otherprocedure to give a root password?
What is devops model?
How do I navigate in cmd?
What command would you use to check how much memory is being used by linux?
What does wc command do in unix?
What is the use of finger command in linux?
You are required to restore the file memo.ben. It was backed up in the tar file MyBackup.tar. Which command would you use to do it?
What does c mean in linux?
What is a makefile in c?
What does cd – command do?
How do makefiles work?
What is kill 9 in linux?