Sudo (Super User Do) is Linux console only utility allowing users to execute programs which require root rights without knowing root password. There are lots of topic why sudo rocks on the Web so here you can find a tip how to configure sudo in order to execute certain root right requiring programs without any passwords (it known as sudo nopasswd).

There are several ways to configure sudo in Linux regardless distribution you use. Its configuration file is located at /etc/sudoers and can be edited using any text editor like vi, nano, pico, gedit, mcedit whatever:

sudo vi /etc/sudoers
or
sudo visudo

So, in order to allow user named artemn to execute, say, ifconfig command and assign IP addresses, netmasks to interfaces, add the following line to /etc/sudoers:

artemn ALL = PASSWD: ALL, NOPASSWD: /sbin/ifconfig

Please notice if there is already line for artemn in sudoers file, just replace it with the new one.

 

0 Comments

 

  1. February 9, 2011  10:21 pm by ??????? Reply

    Simply killing some in between class time on Digg and I found your article . Not usually what I desire to read about, but it surely was completely value my time. Thanks.

  2. May 27, 2011  1:38 am by Benedict Overbough Reply

    Glorious submit from skilled additionally it should in all probability be an exquisite know-how one can us and thank you numerous for posting this beneficial data with us all.

Leave a reply

 

Your email address will not be published.