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


Please Help Members By Posting Answers For Below Questions

What does chmod 755 do?

475


Explain about communication features in UNIX?

617


How do I check my cpu cores?

525


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?

532


What is devops model?

514






How do I navigate in cmd?

533


What command would you use to check how much memory is being used by linux?

550


What does wc command do in unix?

527


What is the use of finger command in linux?

515


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?

527


What does c mean in linux?

566


What is a makefile in c?

575


What does cd – command do?

591


How do makefiles work?

532


What is kill 9 in linux?

573