Re: [Ddclient-support] 'Run as' ddclient and Multiple Interfaces
Brought to you by:
supersandro2000,
wimpunk
From: wimpunk <wi...@us...> - 2016-11-24 07:18:20
|
Hi, On 24/11/16 06:03, ca...@qu... wrote: > Maybe I'm wrong but I thought I'd read somewhere that after the ddclient > daemon starts, it's supposed to change from user root to ddclient. But > it's not. And I'm not finding the code in the script to do that. Am I > imagining things? > No, it doesn't change the owner. If you want ddclient to be started as a different user, you have to start it manually as a different user. In most cases this is done by using `su` in the init-script. > Also I have ddclient set to get the IP off the interface, but depending > on the phase of the moon, the humidity, and how much noise is in the > room, the interface can come up variously as eth0, eth1, or eth2. > (CentOS) Is there any way to specify multiple interfaces in the config > file? > Unfortunately there is no possibility to let ddclient choose the interface. You could for example try to find out the correct interface and add it as a parameter on startup. At the other hand, you could try to find out if there's a way to get the same interface name after every reboot. On debian they fix this by generating a persistent rule to udev. On my system it contains this: # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # USB device 0x:0x (cdc_ether) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:10:1f:00:00", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" so it links the mac-address to the device name. On SuSE you can do the link based on the pci location. I don't know how they save it in udev, I just know it can be done through yast2. I hope this info can help you. Kind regards wimpunk. |