Ubuntu- Sudo without password

I am Linux Admin, my routine job is to maintain proxy, nagios & mail server. I always use root user for my servers. Thus I am used to full rights.

But when it comes to perform admin task on my Ubuntu PC I have no better choice than sudo / su. With the following method I avoid entering password.

There is small configuration change required to avoid sudo prompting password.

cd /etc/

chmod 0740 sudoers

vi sudoers

enter ALL ALL=NOPASSWD: ALL at the end of configuration file.

chmod 0440 sudoers



if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.

Article by Dhaval Thakar

Hi, I am Linux Admin. You'll find my articles small & without much descriptions.
Read 218 articles by
  • http://www.linuxreaders.com dhaval thakar

    Hi, I agree with your comment.

  • Sarath

    I enjoyed a few of your articles, but this aint one of them.

    DONT do this. This kind of tweaking is not really *adminy* . A true Admin would rather kill the terminal he sudo-ed in, to be even sure.
    http://blog.sarathonline.com/2009/09/dont-sudo-without-password.html

Archives

Categories

Page optimized by WP Minify WordPress Plugin