[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: change hostname without rebooting



# Me, wonders why systemd-hostnamed does not run, google says it should:

$ echo $PATH
/usr/lib/postgresql/8.3/bin:/home/justa/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games

$ dpkg -L systemd|grep hostnamed
/lib/systemd/system/systemd-hostnamed.service
/lib/systemd/systemd-hostnamed

$ cd /lib/systemd/

$ file systemd-hostnamed
systemd-hostnamed: ELF 64-bit LSB executable, x86-64, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26,
BuildID[sha1]=0x4447f9b433f2bd71e603d2b9060b1196edc64048, stripped

$ ./systemd-hostnamed
Warning: nss-myhostname is not installed. Changing the local hostname
might make it unresolveable. Please install nss-myhostname!
Failed to register name on bus: Access denied

OK, so now we have another /sbin type directory called /lib/systemd
... should I avoid adding this to my path, as in, is systemd-hostnamed
supposed to be wrapped by /bin/hostname, and for now it's not? Or are
these commands additional /sbin type commands that we will need now
and again?

Should systemd-hostnamed actually work for live-changing the hostname?
If so, should systemd package suggest or recommend "nss-myhostnamed"
aka debian's libnss-myhostname ??

tia
zenaan


Reply to: