LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2005, 03:05 AM   #1
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Rep: Reputation: 30
Help editing /etc/sudoers


I have edited the file /etc/sudoers in order to allow my self to run some commands with not having the need to access the root account,

so I have added the line

username ALL = NOPASSWD: /sbin/ifup, /sbin/ifdown, sbin/ifconifg

I do run this command too often as well
Code:
ifconfig eth0 down
cd /etc/rc.d
./rc.inet1 start
how can i add those line in since its a multiple dir

Thanks
 
Old 07-22-2005, 03:16 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
username ALL = NOPASSWD: /sbin/ifup eth0, /sbin/ifdown eth0, /sbin/ifconfig eth0 *, /etc/rc.d/rc.inet1 start

and you are using visudo, right?
 
Old 07-22-2005, 03:27 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
To the OP:

Are you sure you're using slack? :}
I haven't seen ifup/ifdown in slack yet ;}


Cheers,
Tink
 
Old 07-22-2005, 04:17 AM   #4
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
this is what I have but aint working yet:
Code:
moderator ALL = NOPASSWD:/sbin/ifconfig eth0 *, /etc/rc.d/rc.inet1 start
Code:
and you are using visudo, right?
i just vi sudoers and edit the file!!am not sure though!!

Code:
I haven't seen ifup/ifdown in slack yet ;}
username ALL = NOPASSWD: /sbin/ifup, /sbin/ifdown, sbin/ifconifg

was just a tip that i found on the internet thats why i asked how could I add
Code:
ifconfig eth0 down
cd /etc/rc.d
./rc.inet1 start
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 06:03 PM
Regarding SUDOERS hinetvenkat Linux - Networking 1 09-02-2005 02:47 PM
sudoers usa1234 Linux - General 1 10-24-2004 04:07 PM
sudoers???? yenonn Slackware 6 02-10-2004 04:09 AM
Help Editing Sudoers File Rubicone Linux - Newbie 2 05-03-2002 02:50 AM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration