FS#27587 - [openntpd] does not create ntp user during system install
Attached to Project:
Community Packages
Opened by Leo Bärring (tlvb) - Thursday, 15 December 2011, 16:45 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 17 November 2012, 19:35 GMT
Opened by Leo Bärring (tlvb) - Thursday, 15 December 2011, 16:45 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 17 November 2012, 19:35 GMT
|
Details
Description:
I selected openntpd to be installed when doing an archlinux install (netinstall), appending @openntpd to the DAEMONS array in /etc/rc.conf. Upon the first boot after the install, I got a message just before the login prompt that openntpd could not start because the ntp user and group was not present. Logging in and un+in-stalling it again created the user and group. I have not checked if it is a problem on 32 bit systems -- The archlinux-2011.08.19-netinstall-x86_64.iso from ds.hj.se (http access) was used. The only manually selected packages (during the install process) was openntpd and openssh. |
This task depends upon
Closed by Jelle van der Waa (jelly)
Saturday, 17 November 2012, 19:35 GMT
Reason for closing: Fixed
Additional comments about closing: The bug occurs when you have ntp and openntpd installed and remove one. So now we let openntpd conflict with ntp
Saturday, 17 November 2012, 19:35 GMT
Reason for closing: Fixed
Additional comments about closing: The bug occurs when you have ntp and openntpd installed and remove one. So now we let openntpd conflict with ntp
post_install() {
if [ ! "`grep ^ntp /etc/group`" ]; then
echo "adding new group: ntp"
/usr/sbin/groupadd -g 87 ntp
fi
if [ ! "`grep ^ntp /etc/passwd`" ]; then
echo "adding new user: ntp"
/usr/sbin/useradd -g ntp -u 87 -d /var/empty -s /bin/false -c 'Network Time Protocol' ntp
fi
}