Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HOWTO enable SUDO

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
hkoster1
Posts: 1264
Joined: 2006-12-18 10:10

Re: HOWTO enable SUDO

#16 Post by hkoster1 »

Yet another way of configuring sudo (with thanks to our lamented long lost Telemachus):

With root privileges, edit a user file like /etc/sudoers.d/mysudo with content

Code: Select all

Cmnd_Alias NET = /sbin/ifconfig, /sbin/ifup, /sbin/ifdown, \
                 /sbin/ip, /sbin/route
Cmnd_Alias APT = /usr/bin/aptitude, /usr/bin/apt-get, \
                 /usr/bin/dpkg, /usr/sbin/dpkg-reconfigure
<username>      ALL = NOPASSWD: NET, APT
then change the file privileges with

Code: Select all

# chmod 0440 /etc/sudoers.d/mysudo
Then you're all set.

Have fun!
Real Debian users don't do chat...

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: HOWTO enable SUDO

#17 Post by nadir »

hkoster1 wrote: (with thanks to our lamented long lost Telemachus):
Yeah, looks so. But then, short ago: http://forums.debian.net/viewtopic.php? ... 2c#p453683
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

Post Reply