Find the answer to your Linux question:
Results 1 to 5 of 5
Hi...I jst want to know how can I give a common user the right to execute some command that only root can execute... for example...shutdown or anything else......
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Location
    Venezuela
    Posts
    60

    Commands rights...


    Hi...I jst want to know how can I give a common user the right to execute some command that only root can execute... for example...shutdown or anything else...

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    Odessa, FL
    Posts
    586
    Quote Originally Posted by elmagozizou
    Hi...I jst want to know how can I give a common user the right to execute some command that only root can execute... for example...shutdown or anything else...
    the only way i know of (though there may be a permanent solution) is to give the user temporary user rights...either by doing, as the user:
    Code:
    su
    <root-password>
    or
    Code:
    sudo <command>
    <root-password>
    the first will login as root, the other will give this user root priveleges for the command specified. for example,
    Code:
    sudo halt
    <root-password>
    will allow whichever user is logged in to shutdown the computer

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Install and setup sudo:

    http://www.wlug.org.nz/SudoHowto

  4. #4
    Just Joined!
    Join Date
    Apr 2005
    Location
    Venezuela
    Posts
    60
    ok..but ther wey?? with sudo youre doing it indirectly as root....

    Or maybe what im trying to do is not posible?

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    No, with sudo they use their own user password to run commands, but they only have whatever permissions you've given them. They can't do everything root can do unless you setup sudo to give them those privileges.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •