how to give a normal user reboot and shutdown permission?
Plz also mention the step.

Answers were Sorted based on User's Feedback



how to give a normal user reboot and shutdown permission? Plz also mention the step...

Answer / 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

how to give a normal user reboot and shutdown permission? Plz also mention the step...

Answer / bharath

By using sudo cmd we can give a permission for a normal user
to execute reboot and shutdown.

Is This Answer Correct ?    0 Yes 0 No

how to give a normal user reboot and shutdown permission? Plz also mention the step...

Answer / kumaresanchandran

shutdown: shutdown -h
go to root directory type: init 0

reboot : reboot
go to root directory type: init 6

Is This Answer Correct ?    2 Yes 13 No

how to give a normal user reboot and shutdown permission? Plz also mention the step...

Answer / k.arveen

to reboot
#init 6
to shutdown
#init 0

Is This Answer Correct ?    4 Yes 29 No

Post New Answer

More Linux Commands Interview Questions

What u know abt tar Command?

5 Answers   Locuz,


How do you find out the server processes running?

4 Answers   HP,


What is the difference between cd and cd in linux?

0 Answers  


what do know about commands?

0 Answers   Ericsson,


What is df command in linux?

0 Answers  






How commands work in linux?

0 Answers  


How many types of commands are there in linux?

0 Answers  


Explain about kernel file in linux?

7 Answers  


How do I find command history in linux?

0 Answers  


How do I run bash on windows?

0 Answers  


What is the ipconfig command for linux?

0 Answers  


Brief about FTP hostname?

0 Answers  


Categories