Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ddclient strange behaviour
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 859
Location: germany

PostPosted: Tue Apr 08, 2025 6:44 am    Post subject: [solved] ddclient strange behaviour Reply with quote

hi all!

last week i recompiled ddclient and also restarted it afterwards. since then i am getting lots of messages from ddclient accoirding to trials to update the ip and also the following messages:
Code:

ddclient[17135]: WARNING: [file /etc/ddclient.conf]> file should be owned only by ddclient or not be writable.
ddclient[17136]: WARNING: [file /var/lib/cache/ddclient/ddclient.cache]> file should be owned only by ddclient or not be writable.


deleting the cache file and "correcting" rights of ddclient.conf as suggested here https://github.com/ddclient/ddclient/pull/413 results in correction after restart.
before:
Code:

ls -la /etc/ddclient.conf
-rw------- 1 ddclient ddclient 11321 Dec 18  2023 /etc/ddclient.conf


after:
Code:

ls -la /etc/ddclient.conf
-rw------- 1 root ddclient 11321 Dec 18  2023 /etc/ddclient.conf


after restart:
Code:

/etc/init.d/ddclient start
 * /etc/ddclient.conf: correcting owner
 * Starting DDclient ...

ls -la /etc/ddclient.conf
-rw------- 1 ddclient ddclient 11321 Dec 18  2023 /etc/ddclient.conf


and it begins with the first mentioned warings.
here's my ddclient.conf:
Code:

daemon=600                              # check every 300 seconds
syslog=yes                              # log update msgs to syslog
mail=snIP3r                           # mail all msgs to root
#mail-failure=root                      # mail failed update msgs to root
ssl=yes                                 # use ssl-support.  Works with

#various dyndns entries....



can anyone help me with this??? after the recompile/restart everything works as it should and there were no changes in config made....

thx in advance
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!


Last edited by snIP3r on Tue Apr 08, 2025 9:55 am; edited 1 time in total
Back to top
View user's profile Send private message
user
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 229

PostPosted: Tue Apr 08, 2025 9:13 am    Post subject: Re: ddclient strange behaviour Reply with quote

Hi,
you miss
# chmod 640 /etc/ddclient.conf
Code:
-rw-r----- 1 root ddclient 11321 Dec 18  2023 /etc/ddclient.conf


- right/write by root
- readonly by ddclient (via ddclient group)
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 859
Location: germany

PostPosted: Tue Apr 08, 2025 9:23 am    Post subject: Reply with quote

sorry, but that did not fix it....

Code:

 ls -la /etc/ddclient.conf
-rw-r----- 1 root ddclient 11321 Dec 18  2023 /etc/ddclient.conf

/etc/init.d/ddclient status
 * status: stopped

/etc/init.d/ddclient start
 * /etc/ddclient.conf: correcting mode
 * /etc/ddclient.conf: correcting owner
 * Starting DDclient ...                                                                                            [ ok ]

ls -la /etc/ddclient.conf
-rw------- 1 ddclient ddclient 11321 Dec 18  2023 /etc/ddclient.conf


i corrected the rights/owner as suggested, started ddclient and it shows me correction of mode and owner like before... waring messages now appear like i posted...

my init script shows me this:
Code:

...
        checkpath -f -m 0600 -o ${command_user}:${command_group} /etc/ddclient.conf
        checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient
        checkpath -d -m 0700 -o ${command_user}:${command_group} /var/lib/cache/ddclient
...


so 640 for ddclient is not correct...
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 859
Location: germany

PostPosted: Tue Apr 08, 2025 9:57 am    Post subject: Reply with quote

i think found the problem: stopping ddclient did not stop it, so many processes were there and they cause the irritation. killing all and starting it again solved the issue....
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum