Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10036 - [netcfg 2.0.6-1] fails on sudo

Attached to Project: Arch Linux
Opened by Rafał (ert16) - Monday, 31 March 2008, 12:46 GMT
Last edited by eliott (cactus) - Friday, 04 April 2008, 05:46 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture i686
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I execute netcfg to start profile through sudo, fails width errors
Example :
~> sudo netcfg2 pro_wifi
Password:
:: pro_wifi up [BUSY]
:: agh down [BUSY]
/usr/lib/network//ethernet.subr: line 100: dhcpcd: command not found
/usr/lib/network//ethernet.subr: line 108: ifconfig: command not found
[FAIL]
When running directly as Root everything works fine.

Additional info:
netcfg version 2.0.6-1
dhcpcd version 3.2.1-1
This task depends upon

Closed by  eliott (cactus)
Friday, 04 April 2008, 05:46 GMT
Reason for closing:  None
Additional comments about closing:  User requested close.
Comment by Jan de Groot (JGC) - Monday, 31 March 2008, 15:58 GMT
This is because /usr/sbin or /sbin is not in your path when using sudo (hmm, it's in my path even on normal accounts).
netcfg2 should use full paths to be sure the binary is found.
Comment by Rafał (ert16) - Monday, 31 March 2008, 17:40 GMT
ert16@ertm ~> echo $PATH
/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/share/eclipse:/opt/java/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin
ert16@ertm ~> sudo bash
root@ertm ~> echo $PATH
/usr/bin:/bin

Anyway netcfg2 should be corrected

Loading...