Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


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 (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
Comment by Alexander F Rødseth (xyproto) (trontonic) - Friday, 16 December 2011, 10:48 GMT
looking at openntpd.install, it looks like there is code in place that tries to add an ntp user:

post_install() {
if [ ! "`grep ^ntp /etc/group`" ]; then
echo "adding new group: ntp"
/usr/sbin/groupadd -g 87 ntp

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