Summary: | net-dns/ddclient fails to start, permission denied to conf file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tiago Marques <bugs> |
Component: | New packages | Assignee: | Thomas Anderson (tanderson) (RETIRED) <tanderson> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | Martin.Torsten, matthewsmith, radhermit, ryantanay, ttuegel |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ddclient.initd.patch |
Description
Tiago Marques
2008-03-09 16:51:46 UTC
*** Bug 212841 has been marked as a duplicate of this bug. *** I ran into the same problem awhile back and fixed it by removing one line from the init file. See the attached patch for the change. Created attachment 146734 [details]
ddclient.initd.patch
ddclient init patch
This seems to be due to the file /etc/ddclient/ddclient.conf not being owned by root:ddclient, since the initscript has ddclient drop root permissions and run as user ddclient. The conf file should then have group read permissions, as explained in the ddclient ebuild. Can you verify the ownership of /etc/ddclient/ddclient.conf and try the default initscript again? This is more secure than running ddclient as root. Same Problem here. $ ls -l /etc/ddclient insgesamt 4 -rw-r----- 1 root ddclient 1247 7. Okt 10:55 ddclient.conf at "# /etc/init.d/ddclient start" I get exactly the same error like in the bug description. "This seems to be due to the file /etc/ddclient/ddclient.conf not being owned by root:ddclient, since the initscript has ddclient drop root permissions and run as user ddclient. The conf file should then have group read permissions, as explained in the ddclient ebuild. Can you verify the ownership of /etc/ddclient/ddclient.conf and try the default initscript again? This is more secure than running ddclient as root." Torsten, test this, if you can. Best regards I did:
>> $ ls -l /etc/ddclient
>> insgesamt 4
>> -rw-r----- 1 root ddclient 1247 7. Okt 10:55 ddclient.conf
/etc/ddclient/ddclient.conf is owned by root:ddclient and has group read permissions.
I never altered the initscript.
guess it's the other way round: ddclient:root, ie
> ls -lh /etc/ddclient/ddclient.conf
-rw-r----- 1 ddclient root 5.1K Jan 7 23:41 /etc/ddclient/ddclient.conf
i had the same err and the made a chown ddclient on that conf file
and then /etc/init.d/ddclient ran ok
12 Aug 2011; Aaron W. Swenson <titanofold@gentoo.org> +ddclient-3.8.1.ebuild, +files/ddclient.initd-r1, metadata.xml: Version bump. Fixes bugs 186271, 212840, 296598 and 373183 |