Announcement

Collapse
No announcement yet.

sudo issue

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    sudo issue

    Hi All,
    I was able to install everything successfully and it works great. I have one annoyance that would be great if anyone could help me with. Is there a way to stop it from asking you for the sudo password every 2 minutes with every application you open? I know it is a security risk and bla bla but i still want to do it. It is really annoying to type the password every 2 minutes.
    Thanks in advance

    #2
    Re: sudo issue

    sure.
    the file you want to edit is /etc/sudoers.
    which is sudo's configuration file.
    instead of having this:
    Code:
    ...
    # User privilege specification
    root  ALL=(ALL) ALL
    
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    you could have this
    Code:
    ...
    # User privilege specification
    root  ALL=(ALL) ALL
    
    # Members of the admin group may gain root privileges
    %admin ALL=NOPASSWD:ALL
    that is: all users that are member of the admin group will never be asked their password

    or you could have this
    Code:
    ...
    # User privilege specification
    root  ALL=(ALL) ALL
    
    # Members of the admin group may gain root privileges
    user1 ALL=(ALL) ALL
    user2 ALL=(ALL) ALL
    ...
    usern ALL=(ALL) ALL
    myuser ALL=NOPASSWD:ALL
    that is: have a user based configuration
    you can then decide what user gets which privileges (possibly on which commands, if you wanted to)

    i use method b.

    hth
    cheers
    gnu/linux is not windoze

    Comment

    Working...
    X