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

How do you run command every time a file is modified?

978


what is the fastest way to enter a series of commands from the command-line in linux

1077


How does diff command work?

978


How to give acl permission in numerical mode on linux?

999


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?

972


Is python faster than bash?

1016


What are grep commands?

1058


What is finger in networking?

979


What Command used to lock user password?

1113


What is mkdir?

973


What are the basic command in linux?

1077


What is $@ in bash?

1174


How to recover /etc/passwd file and /etc/shadow file?

992


What is mkdir p linux?

1074


What is make in linux?

1014