Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 mkdir m in linux?

1096


Where is command history stored in linux?

1062


How do I open a text file in cmd?

1091


why is the tar command used?

1129


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?

1123


How do I overclock my cpu?

1009


What is type command in linux?

1131


What is DISM command?

1060


You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose

1096


What is $$ in shell script?

1013


You issue the command head * what would the resulting output be?

1021


How do I move to root in linux?

1260


How do make computer faster?

1040


How do I find hostname in linux?

1134


The ‘logout’ built in command is used to

1308