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
How do you run command every time a file is modified?
what is the fastest way to enter a series of commands from the command-line in linux
How does diff command work?
How to give acl permission in numerical mode on linux?
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?
Is python faster than bash?
What are grep commands?
What is finger in networking?
What Command used to lock user password?
What is mkdir?
What are the basic command in linux?
What is $@ in bash?
How to recover /etc/passwd file and /etc/shadow file?
What is mkdir p linux?
What is make in linux?