Results 1 to 5 of 5

Thread: Enough with this Authentication. I don't need it

  1. #1
    Join Date
    Mar 2008
    Beans
    27

    Enough with this Authentication. I don't need it

    "WARNING Will Robinson - DANGER!" Etc.

    I am an I.T. professional with over 25 years experience (started with CP/M before DOS was invented) so I do understand the risks.

    I am trying Ubuntu 12.04 as a second O.S. It is a Sandbox, nothing more. I DO NOT CARE ABOOUT SECURITY on this machine. It is a sandbox.

    As I am experimenting I am making constant changes and am getting to the point of uninstalling and giving up because of constantly being asked to tap in the same blasted password every few seconds.

    I have done a little digging and came up with - run "sudo EDITOR=gedit visudo" and edit the file.

    Code:
    # User privilege specification
    root	ALL=(ALL:ALL) ALL
    me ALL=(ALL:ALL) ALL
    
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    me ALL=(ALL) NOPASSWD: ALL
    
    # Allow members of group sudo to execute any command
    %sudo	ALL=(ALL:ALL) ALL
    me ALL=(ALL@ALL) NOPASSWD: ALL
    
    # See sudoers(5) for more information on "#include" directives:
    
    #includedir /etc/sudoers.d
    me ALL=NOPASSWD: ALL
    me ALL=NOPASSWD: /usr/bin/apt-get update
    me ALL=NOPASSWD: /usr/bin/apt-get install *
    Yes, 'me' is the user I chose as it is a Sandbox and I can't be bothered. Anyway, It does not work. I am STILL being pestered.

    Before I delete the partition and go back to Windows, can anyone tell me what I did wrong?

  2. #2
    Join Date
    Feb 2010
    Location
    Land of Confusion
    Beans
    8,345
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Enough with this Authentication. I don't need it

    The info you need is here. https://help.ubuntu.com/community/RootSudo
    Thank you for your contributions. "So long and thanks for the fish!"

  3. #3
    Join Date
    Mar 2008
    Beans
    27

    Re: Enough with this Authentication. I don't need it

    Thanks for the fast reply uRock. I will take a look when I am next back in Ubuntu.

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Enough with this Authentication. I don't need it

    The timeout period for sudo is 15 minutes, by the way.

    Read the link uRock posted for more info.

    It looks like you have it set up correctly, but you should remove these:

    Code:
    me ALL=(ALL@ALL) NOPASSWD: ALL
    me ALL=NOPASSWD: ALL
    me ALL=NOPASSWD: /usr/bin/apt-get update
    me ALL=NOPASSWD: /usr/bin/apt-get install *
    And just have:

    Code:
    me ALL=NOPASSWD: ALL
    Note: This is not the recommended way to do it.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    Mar 2011
    Beans
    680

    Re: Enough with this Authentication. I don't need it

    EDIT: Nevermind.
    Last edited by Hungry Man; May 9th, 2012 at 02:00 AM.

Bookmarks

Posting Permissions

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