Unix Shell - Error in visudo

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > February 2007 > Error in visudo





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Error in visudo
The87Boy

2007-02-17, 1:17 pm

Is there somebody, who can tell me, why these lines are failing, when
I have edited the file with visudo:
lasse ALL=NOPASSWD: ifup
lasse ALL=NOPASSWD: ifdown

And maybe if I could write it on one line

Bill Marcum

2007-02-17, 7:15 pm

On 17 Feb 2007 08:12:00 -0800, The87Boy
<the87boy@gmail.com> wrote:
>
>
> Is there somebody, who can tell me, why these lines are failing, when
> I have edited the file with visudo:
> lasse ALL=NOPASSWD: ifup
> lasse ALL=NOPASSWD: ifdown
>
> And maybe if I could write it on one line
>

Try using the full pathnames for ifup and ifdown. You can write it on
one line, with commas separating the commands.

--
Never let someone who says it cannot be done interrupt the person who is
doing it.
The87Boy

2007-02-18, 1:18 pm

On 17 Feb., 20:21, Bill Marcum <marcumb...@bellsouth.net> wrote:
> On 17 Feb 2007 08:12:00 -0800, The87Boy <the87...@gmail.com> wrote:
>
>
>
> Try using the full pathnames for ifup and ifdown. You can write it on
> one line, with commas separating the commands.


Now I have written it on one line, which look like:
lasse ALL=NOPASSWD: /sbin/ifdown, /sbin/ifup

It worked, but I get the following message, when I'm running ifup or
ifdown:
/sbin/ifdown: failed to open statefile /var/run/network/ifstate:
Permission denied

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com