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 is the difference between diff and cmp command in unix?

470


What are grep commands?

530


What are the examples of simple command?

514


What is tail command in linux?

534


What does f mean linux?

524






Which command is used to find what is in your home directory?

549


Who unix commands?

603


why is the tar command used?

540


What does umask 022 mean?

614


How do I check command history?

537


What does cd – command do?

585


What could be the problem when a command that was issued gave a different result from the last time it was used?

686


How do you sort cpu in top command?

524


How do I stop a linux job?

544


Can I delete .bash history?

506