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

2 Comments

  1. Sarath says:

    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

  2. dhaval thakar says:

    Hi, I agree with your comment.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

    Archives

    Categories

    Page optimized by WP Minify WordPress Plugin