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 mkdir m in linux?
Where is command history stored in linux?
How do I open a text file in cmd?
why is the tar command used?
You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?
How do I overclock my cpu?
What is type command in linux?
What is DISM command?
You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose
What is $$ in shell script?
You issue the command head * what would the resulting output be?
How do I move to root in linux?
How do make computer faster?
How do I find hostname in linux?
The ‘logout’ built in command is used to