Find the answer to your Linux question:
Results 1 to 6 of 6
Hi , Sudo command asking for root password every time in fedora 9. Where I shuld add some privileges to the user so that he is not prompted with password.And ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Location
    Vijayawada
    Posts
    6

    Sudo asking password in fedora 9


    Hi ,

    Sudo command asking for root password every time in fedora 9.
    Where I shuld add some privileges to the user so that he is not prompted
    with password.And what are the commands that shuld give ?

    Ex: sudo service dhcpd status .....it is asking password in fedora 9.It wont ask in fedora 4



    SrinU

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Edit /etc/sudoers file :
    Code:
    kesriniv        ALL=(ALL)       NOPASSWD: ALL
    I assumed that username is kesriniv. NOPASSWD option will do the job.

    Btw, I won't recommned you to set that option. If you set that, what will be the difference between regular user and root user?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    I think you can get control for individual password-less commands by appropriate entries in sudoers file. I have my Arch linux setup so I can sudo pacman for updates without password entry. I have not done this for services so can't comment on how successful this would be ...

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jun 2008
    Location
    Vijayawada
    Posts
    6
    Yes.I accept that there shuld be difference.But for executing some simple commands like seeing status etc.,there is no need for password ...right ?
    Linux shuld be flexible for atleast reading the things , might not be the same for writing the things

  6. #5
    Just Joined!
    Join Date
    Jun 2008
    Location
    Vijayawada
    Posts
    6
    Yes Jona....I am looking for some thing like what U did for pacman...

  7. #6
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Not sure if this will help you or not ... I ended up with
    Code:
    # user jonathan sudo all
    jonathan  ALL=(ALL)  ALL
    
    # next entry for pacman
    jonathan ALL=NOPASSWD: /usr/bin/pacman
    I think you can add parameters as well because there are examples in the sudoer file to allow local users to run /sbin/shutdown -h now ... I have not really explored the feature much because I have had no need as yet.

Posting Permissions

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