Register
Results 1 to 11 of 11
  1. #1
    Junior Member kari's Avatar
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    21
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default Sudo no password

    Here’s how you can set Ubuntu to not prompt for your password when using sudo.
    Launch a terminal window and enter the following command:

    # sudo visudo

    Visudo is a tool used to edit the configuration file of sudo . The command will prompt your for your password. Enter it one last time. The configuration file will open in a text editor, most likely Nano. Scroll down to the end of the document and add the following line:

    username ALL=NOPASSWD: ALL

    Replace username with the username of the user you want to allow a passwordless sudo. So if the user is kari, you would enter:

    kari ALL=NOPASSWD: ALL

    Save and exit the file. Log out, log in as the user kari and test out your new passwordless sudo.

    Note: this is something that is not recommended if you are using your computer in a public place or at your work

  2. #2
    Newbie
    Join Date
    Nov 2009
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Thnx!
    Very usefull post

  3. #3
    Newbie
    Join Date
    Feb 2010
    Posts
    6
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by kari View Post
    Here?s how you can set Ubuntu to not prompt for your password when using sudo.
    Launch a terminal window and enter the following command:

    # sudo visudo

    Visudo is a tool used to edit the configuration file of sudo . The command will prompt your for your password. Enter it one last time. The configuration file will open in a text editor, most likely Nano. Scroll down to the end of the document and add the following line:

    username ALL=NOPASSWD: ALL

    Replace username with the username of the user you want to allow a passwordless sudo. So if the user is kari, you would enter:

    kari ALL=NOPASSWD: ALL

    Save and exit the file. Log out, log in as the user kari and test out your new passwordless sudo.

    Note: this is something that is not recommended if you are using your computer in a public place or at your work
    Beware of that you are serving yourself in silver plate with root privileges. That's why we are using sudo with pass for your security.

  4. #4
    Newbie
    Join Date
    Dec 2008
    Posts
    17
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    They are right. You should only run things in root if you really need to.

    Root is dangerous if mis-handled

  5. #5
    Newbie
    Join Date
    Jul 2010
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Hi

    Very useful, post thank you!

    Jeremias

  6. #6
    Newbie
    Join Date
    Jul 2010
    Posts
    12
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by kari View Post
    Here?s how you can set Ubuntu to not prompt for your password when using sudo.
    It would be safer to limit the scope of "no password" through CMD_ALIAS. For example, I skip the password for reboot, shutdown, mount, and umount only.

  7. #7
    Newbie
    Join Date
    Jul 2010
    Posts
    12
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by rwl408 View Post
    It would be safer to limit the scope of "no password" through CMD_ALIAS. For example, I skip the password for reboot, shutdown, mount, and umount only.
    By the way, be extremely careful when you "su visudo". It is too easy to mess up things and I had to boot to recovery mode to fix it a few times.

  8. #8
    Member
    Join Date
    Apr 2010
    Location
    Greece, Hellas
    Posts
    46
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    I think that you shouldn't do it, cause it is not so good for your security m8. You increase vulnerability with that thing

  9. #9
    Newbie
    Join Date
    Sep 2010
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    I will never do that on my Ubuntu computer.

  10. #10
    Member radu_gostian's Avatar
    Join Date
    Jan 2010
    Posts
    58
    Thanks Thanks Given 
    5
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    And that s how you make your account to a root one .
    Why bother with that account just use root account instead

  11. #11
    Newbie
    Join Date
    Oct 2010
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    very usefull post, thanks for post

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.