Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
hey guys, I see that the title says it all, so how can I do it so that I run for example sudo yum install --------- without su - and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329

    Question how to add myself to sudoers?


    hey guys,
    I see that the title says it all, so how can I do it
    so that I run for example sudo yum install --------- without su - and password ???
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  2. #2
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,127
    What happpened with the other thread? How much progress have you made?

    http://www.linuxforums.org/forum/red...coomand-2.html

  3. #3
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    no body even looked at it after I posted my last post!!
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,127
    If you want to use visudo, you need to become familiar with vi first. The basic commands are -
    • i - insert mode
    • esc - exit insert mode
    • :wq - write and quit
    You will need to run as root or using su -.

  5. #5
    Linux User peteh's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    339
    There's a useful sudoers manual here.
    Pete

  6. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Here's another good sudo howto that might help get you up and running:

    Sudo Howto - Waikato Linux Users Group
    oz

  7. #7
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4

    Sudo Permissions

    Hey Buddy,

    use the following steps to enable sudo permission for the user.

    (vi /etc/sudoers )file logging in as root. add the user as mentioned in red tags..

    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    %user ALL=(ALL) NOPASSWD:ALL

    Now that ur sudo is active. !!!!

    Regards,
    ~Destined

  8. #8
    Just Joined!
    Join Date
    Jan 2006
    Posts
    57
    Check this. It can't be more analytic :P

    Fedora 9 Installation Guide - Configuring sudo

  9. #9
    Linux Newbie
    Join Date
    Jun 2008
    Location
    Georgia, USA
    Posts
    117
    This is the way I go about it in Centos:

    Go to /etc/sudoers and change:

    ## Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL

    to

    ## Same thing without a password
    %wheel ALL=(ALL) NOPASSWD: ALL

    Then go to /etc/group and add your username to the wheels group (assuming
    your username is user101):

    wheel:10:root,user101

    However, you need to be either root or a super user (sudo user) in order for you to edit these two files.

    Thanks.
    --Willie

  10. #10
    Linux User IsaacKuo's Avatar
    Join Date
    Feb 2005
    Location
    Baton Rouge, LA, USA
    Posts
    405
    Quote Originally Posted by jestaji View Post
    Hey Buddy,

    use the following steps to enable sudo permission for the user.

    (vi /etc/sudoers )file logging in as root. add the user as mentioned in red tags..

    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    %user ALL=(ALL) NOPASSWD:ALL

    Now that ur sudo is active. !!!!

    Regards,
    ~Destined
    In case it isn't obvious, the red line above will provide full root access to EVERY regular user (every user in the "user" group). And there isn't even a need to enter any password to reconfirm one's own identity!

    Any regular user can simply enter the command "sudo su" and he's logged in as root. No password of any sort needed.
    Isaac Kuo, ICQ 29055726 or Yahoo mechdan

Page 1 of 2 1 2 LastLast

Posting Permissions

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