2

When I run ddclient (DynamicDns Updator) without sudo, I get

WARNING:  file /etc/ddclient.conf: Cannot open file '/etc/ddclient.conf'. (Permission denied)
stat() on closed filehandle FD at /usr/sbin/ddclient line 934.
Use of uninitialized value $mode in bitwise and (&) at /usr/sbin/ddclient line 935.
readline() on closed filehandle FD at /usr/sbin/ddclient line 947.
WARNING:  file /etc/ddclient.conf: Cannot open file '/etc/ddclient.conf'. (Permission denied)
stat() on closed filehandle FD at /usr/sbin/ddclient line 934.
Use of uninitialized value $mode in bitwise and (&) at /usr/sbin/ddclient line 935.
readline() on closed filehandle FD at /usr/sbin/ddclient line 947.
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 934.
Use of uninitialized value $mode in bitwise and (&) at /usr/sbin/ddclient line 935.
readline() on closed filehandle FD at /usr/sbin/ddclient line 947.

However it works fine with sudo.

Do I need to chmod some files? If yes, please explain how.

N.N.
  • 18,589
Amith KK
  • 13,547

1 Answers1

5

In a default setup root runs ddclient as a daemon using setting from /etc/ddclient.conf. Runtime options are defined in /etc/default/ddclient.

We are able to start ddclient with another configuration file by using the option:

ddclient -file <path>

For further options see also the ddclient wiki.

It is not recommended to change permissions for the default files as this may lead to security issues.

Takkat
  • 144,580