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 is the difference between diff and cmp command in unix?
What are grep commands?
What are the examples of simple command?
What is tail command in linux?
What does f mean linux?
Which command is used to find what is in your home directory?
Who unix commands?
why is the tar command used?
What does umask 022 mean?
How do I check command history?
What does cd – command do?
What could be the problem when a command that was issued gave a different result from the last time it was used?
How do you sort cpu in top command?
How do I stop a linux job?
Can I delete .bash history?