Find the answer to your Linux question:
Results 1 to 5 of 5
Hi All, Newbee here, so be easy I have a user I configured via GUI on Cent OS 5 while in the office. I am now SSH'd in remotely and ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3

    user needs sudo

    Hi All,

    Newbee here, so be easy I have a user I configured via GUI on Cent OS 5 while in the office. I am now SSH'd in remotely and would like to know what do I need to do to make a user part of the sudo group via command line. Sorry if I may have worded this wrong, I am a newbee.

    Thank you in advance.

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    You can use the command visudo to safely edit /etc/sudoers or you can just run:
    Code:
    echo 'loginname ALL=(ALL) ALL' >> /etc/sudoers
    as root where loginname is your username.

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3

    Smile

    Great, well that took. How do I verify if the user is part of sudo?

  4. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    First, logout and log back in. Then, try running a command, as a regular user, that normally root would only be able to run, with sudo. For example, you can try editing files outside of ~. Of course, be sure you undo any changes you make so that you don't harm your system in any way.

  5. #5
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3
    Thanks!!!

Posting Permissions

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