There seems to be problem with scripts that are executed from within wicd. This is what I am getting:
2010/02/26 21:29:16 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67
interval 5
2010/02/26 21:29:17 :: DHCPOFFER from 192.168.2.1
2010/02/26 21:29:17 :: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
2010/02/26 21:29:17 :: DHCPACK from 192.168.2.1
2010/02/26 21:29:18 :: bound to 192.168.2.102 -- renewal in 37222 seconds.
2010/02/26 21:29:18 :: DHCP connection successful
2010/02/26 21:29:18 :: not verifying
2010/02/26 21:29:18 :: Executing post-connection script
2010/02/26 21:29:18 :: Expanded '/usr/bin/sudo /usr/sbin/vpnc-connect' to
'/usr/bin/sudo /usr/sbin/vpnc-connect'
2010/02/26 21:29:18 :: Executing '/usr/bin/sudo /usr/sbin/vpnc-connect' with
params
2010/02/26 21:29:18 :: '/usr/bin/sudo /usr/sbin/vpnc-connect' returned 127
2010/02/26 21:29:18 :: Connecting thread exiting.
2010/02/26 21:29:18 :: ifconfig wlan0
2010/02/26 21:29:18 :: IP Address is: 192.168.2.102
2010/02/26 21:29:18 :: Sending connection attempt result Success
2010/02/26 21:29:18 :: ifconfig eth0
2010/02/26 21:29:18 :: iwconfig wlan0
As you can see, the error code returned is 127 which as per exit's manpage is:
127 A utility to be executed was not found.
I though the the PATH variable was not defined so I gave the full path to the
binary but that does not seem to be helping.
21:33:14 r...@champaran:/tmp/DebSources/vpnc-0.5.3 $ which vpnc-connect
/usr/sbin/vpnc-connect
21:33:17 r...@champaran:/tmp/DebSources/vpnc-0.5.3 $ which sudo
/usr/bin/sudo
And this is what sudoers has:
rrs ALL=NOPASSWD: /usr/sbin/vpnc-connect, /usr/sbin/vpnc-disconnect,
/usr/bin/cowbuilder, /usr/bin/dpkg-buildpackage
With the new wicd, have you had success in executing scripts (like vpnc) ?
Regards,
Ritesh
On Thursday 25 Feb 2010 21:58:29 Ritesh Raj Sarraf wrote:
> On Friday 29 Jan 2010 18:28:25 David Paleino wrote:
> > > wicd (1.6.2) was able to auto-connect to my hidden network. But with
> > > 1.7.0, that is not the case.
> >
> > Can you post your /var/log/wicd/wicd.log, after enabling debugging mode
> > (in wicd-gtk) and stripping private information?
>
> Hello david,
>
> I have attached part of the wicd log where I used to feel there was a
> problem.
>
> 2010/02/25 21:44:59 :: found predisconnectscript in configuration sudo
> vpnc- disconnect
> 2010/02/25 21:44:59 :: found gateway in configuration None
> 2010/02/25 21:44:59 :: found use_global_dns in configuration False
>
> I think my problem is somewhere here. I have a pre-disconnection script, a
> command, `sudo vpnc-disconnect`
>
> I think, if the script exits un-clean, wicd behaves differently. I haven't
> looked much though.
>
> Just removing the pre-disconnection command solved the connection problem.
>
>
> Regards,
> Ritesh
>
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
signature.asc
Description: This is a digitally signed message part.

