Opened 18 years ago

Closed 18 years ago

#1810 closed defect (invalid)

error executing "/etc/dhcpc/dhcpcd.exe /var/lib/dhcpc/dhcpcd-eth0.info new": Permission denied

Reported by: smileaf Owned by: lfs-book@…
Priority: normal Milestone:
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

run: chmod +x /etc/dhcpc/dhcpcd.exe After a make install to fix the permissions.

Change History (7)

comment:1 by Chris Staub, 18 years ago

Resolution: invalid
Status: newclosed

This has nothing to do with LFS. A ".exe" file sounds like a windows program anyway.

comment:2 by smileaf, 18 years ago

Sounds like it yes. but it doesn't.

This is in my log file.

Jun 6 00:09:27 [dhcpcd] error executing "/etc/dhcpc/dhcpcd.exe /var/lib/dhcpc/dhcpcd-eth0.info new": Permission denied

comment:3 by smileaf, 18 years ago

Guess I hit submit too quick.. sorry

/etc/dhcpc/dhcpcd.exe is a script Here is the description at the top of the script: # This is a sample /etc/dhcpc/dhcpcd.exe script. # /etc/dhcpc/dhcpcd.exe script is executed by dhcpcd daemon # any time it configures or shuts down interface.

here is the full installed contents of dhcpcd-2.0.5 /etc/dhcpc/dhcpcd.exe /usr/share/man/man8/dhcpcd.8.bz2 /sbin/dhcpcd

comment:4 by Chris Staub, 18 years ago

I have dhcpcd installed, and I don't even have /etc/dhcpc. I do have /var/lib/dhcpc/dhcpcd.exe, but have never had any issues or gotten any errors about it. Where is the log file that's reporting the error?

comment:5 by dbn.lists@…, 18 years ago

A couple points. /var/lib/dhcpc/dhcpcd.exe is legitimate. It is run by the dhcpcd daemon.

Wait, I just looked at the source, and we are definitely not running this correctly. dhcpcd.exe is supposed to be executed by /sbin/dhcpcd whenever there is a change of address. However, the location of dhcpcd.exe is hardcoded is hardcoded in src/pathnames.h:

#define EXEC_ON_CHANGE "/etc/dhcpc/"PACKAGE".exe"

comment:6 by dbn.lists@…, 18 years ago

Resolution: invalid
Status: closedreopened

Whoops, hit submit instead of preview. To finish this thought now.

You can override this hardcoded location by passing -c file to /sbin/dhcpcd. The blfs network script doesn't do this. So, nothing is being executed because it doesn't know about /var/lib/dhcpc/dhcpcd.exe. And, dhcpcd.exe does get installed with 644 permissions. You'd have never seen the errors he's referring to because we always pass --sysconfdir=/var/lib.

Chris, I'm not at home to test this out. In /etc/sysconfig/network-devices/services/dhcpcd, could you change the line from

/sbin/dhcpcd $1 $DHCP_START

to

/sbin/dhcpcd -c /var/lib/dhcpc/dhcpcd.exe $1 $DHCP_START

Or just move dhcpcd.exe to /etc/dhcpc and I'd wager that you will see the error he's referring to.

comment:7 by Matthew Burgess, 18 years ago

Resolution: invalid
Status: reopenedclosed

Dhcpcd is not installed in LFS. Please report this using the BLFS Trac system at http://www.linuxfromscratch.org/blfs/ instead.

Note: See TracTickets for help on using tickets.