Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.