x
all questions login
General DNS & Domains Dyn Email Update Clients Dyn Developer

Install time failed to launch daemon. When I run the app, it notices the daemon is not running, and offers to start it. This also fails.

I find in my logs:

May 20 09:12:10 8way [0x0-0x1ff1ff].com.dyndns.DynDNS Updater[42845]: /Users/amgems/Applications/DynDNS Updater.app/Contents/Resources/duInstallDaemon: line 68: chown: command not found

In the duInstallDaemon, I find:

chown -R root:wheel /usr/local/dyndns/
chmod 755 /usr/local/dyndns/
chmod 700 /usr/local/dyndns/Accounts/
chmod 755 /usr/local/dyndns/Config/
chmod 644 /usr/local/dyndns/Config/log_level
chmod 600 /usr/local/dyndns/Config/passwd
chmod 644 /usr/local/dyndns/dyndnsd.conf
chmod 755 /usr/local/dyndns/DynDNSUpdaterService
chmod u+s /usr/local/dyndns/DynDNSUpdaterService
chmod 755 /usr/local/dyndns/ig-configurator.sh

Either set the $PATH you expect, or use explicit pathnames.

On OSX, chown is /usr/sbin which is peculiar, to say the least.

No idea why this fails in my environment. I regularly use chown/chmod, but I also explicitly add /sbin and /usr/sbin to my path at all times. Always have.

more ▼

asked May 19 at 11:33 PM

amgems\'s gravatar image

amgems
21 1 1 3

It is not a simple issue of fixing the $PATH, though. If I do address the $PATH issue, it installs everything, but my user owns it, and the setuid bit on the DyDnsUpdaterService sets uid to me (501).

May 19 at 11:43 PM amgems
10|600 characters needed characters left

1 Answer:

In order to fix the installation, you must determine the location of the duInstallDaemon and edit it.

I added the following lines near the top:

PATH=/usr/sbin:/sbin:$PATH

This can be added at line 2. Do not place it before line 1.

After that, the only other thing I found wrong was the ownership of the DynDNSUpdaterService.

The following will fix it:

# chown root:wheel /usr/local/dyndns/DynDNSUpdaterService 
# ls -lrt $_
-rwsr-xr-x  1 root  wheel  1104528  7 Jan 23:41 /usr/local/dyndns/DynDNSUpdaterService

(I was expecting the setuid bit to get shot down with the chown, but not so in OSX)

Insert the 'sudo ' in front if you need to. If you cannot get a command prompt, and do not know what sudo is, I cannot help you, but there is sufficient info here for the DynDNS folks to fix things properly.

I'm off to play with my newly installed and finally functioning update app.

more ▼

answered May 19 at 11:51 PM

amgems\'s gravatar image

amgems
21 1 1 3

10|600 characters needed characters left
Your answer
osqa.question.ask.tags.preview.show

© 1998-2012  Dynamic Network Services Inc.  -  Legal Notices  -  Privacy Policy  -  Contacts     

Powered by AnswerHub - Enterprise Social Q&A