setting up ddclient

Wade Smart wade at wadesmart.com
Thu Dec 20 17:05:29 UTC 2007


12202007 1104 GMT-6

Im getting some errors when I try to run my ddlcient:


wadesmart at wadesmart:/$ ddclient
WARNING:  file /etc/ddclient.conf: Cannot open file
'/etc/ddclient.conf'. (Permission denied)

stat() on closed filehandle FD at /usr/sbin/ddclient line 884.

Use of uninitialized value in bitwise and (&) at /usr/sbin/ddclient line
885.
readline() on closed filehandle FD at /usr/sbin/ddclient line 896.

WARNING:  file /etc/ddclient.conf: Cannot open file
'/etc/ddclient.conf'. (Permission denied)
stat() on closed filehandle FD at /usr/sbin/ddclient line 884.
Use of uninitialized value in bitwise and (&) at /usr/sbin/ddclient line
885.
readline() on closed filehandle FD at /usr/sbin/ddclient line 896.

WARNING:  file /var/cache/ddclient/ddclient.cache: Cannot open file
'/var/cache/ddclient/ddclient.cache'. (Permission denied)
stat() on closed filehandle FD at /usr/sbin/ddclient line 884.
Use of uninitialized value in bitwise and (&) at /usr/sbin/ddclient line
885.
readline() on closed filehandle FD at /usr/sbin/ddclient line 896.

WARNING:  unable to determine IP address
wadesmart at wadesmart:/$



The etc/ddclient.conf is owned by root and is 600644.

On line 884 this is the code:
883  	# Check for only owner has any access to config file
884    	my ($dev, $ino, $mode, @statrest) = stat(FD);
    	if ($mode & 077) {
		if (-f FD && (chmod 0600, $file)) {
	    		warning("file $file must be accessible only by its owner (fixed).");
		} else {
	   		 # fatal("file $file must be accessible only by its owner.");
	   		 warning("file $file must be accessible only by its owner.");
		}
     	}


Seems odd that their code is wrong. Did you have these problems?

Wade





More information about the ubuntu-users mailing list