user "ntp" does not created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntp (Debian) |
Fix Released
|
Unknown
|
|||
ntp (Ubuntu) |
Fix Released
|
Medium
|
Adam Conrad |
Bug Description
Subject: ntp-server: Error in services: action "start" failed action "restart" failed.and
Package: ntp-server
Version: 1:4.2.0a+
Severity: normal
* Add in applet of gnome install ntp:
Seleccionando el paquete ntp previamente no seleccionado.
(Leyendo la base de datos ...
98428 ficheros y directorios instalados actualmente.)
Desempaquetando ntp (de .../ntp_
Seleccionando el paquete ntp-simple previamente no seleccionado.
Desempaquetando ntp-simple (de .../ntp-
Seleccionando el paquete ntp-server previamente no seleccionado.
Desempaquetando ntp-server (de .../ntp-
Removing any system startup links for /etc/init.
Removing any system startup links for /etc/init.
Removing any system startup links for /etc/init.d/ntp ...
ntpd: no process killed
Configurando ntp (4.2.0a+
Configurando ntp-server (4.2.0a+
User ntp does not exist
invoke-rc.d: initscript ntp-server, action "start" failed.
Configurando ntp-simple (4.2.0a+
* Stopping NTP server... invoke-rc.d: initscript ntp-server, action "restart" failed.
-- System Information:
Ubuntu Release: Flight 4
APT prefers dapper
APT policy: (500, 'dapper')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-16-386
Locale: LANG=es_CL.UTF-8, LC_CTYPE=
Versions of packages ntp-server depends on:
ii lsb-base 3.0-12ubuntu3 Linux Standard Base 3.0 init scrip
ii ntp 1:4.2.0a+
ii ntp-simple 1:4.2.0a+
ntp-server recommends no packages.
-- no debconf information
Changed in ntp: | |
assignee: | nobody → adconrad |
Changed in ntp-server: | |
status: | Unconfirmed → Fix Committed |
Changed in ntp-server: | |
status: | Fix Committed → Fix Released |
Hmm, no followup on this bug for 3 months?
I installed the pcakage today and saw the same problem.
This is a two part bug, part 1 is that this error message is wrong:
if [ -z "$UGID" ]; then
echo "User $USER does not exist" >&2
exit 1
fi
(Should be $RUNASUSER.)
Part 2 is that the ntp user is created by the ntp-simple package, but
the ntp package installs an init script that needs that user to exist.
Since ntp does not depend on ntp-simple, ntp is configured before
ntp-simple and so the ntp user is not created in time. The fix for this
is probably moving the adduser call to the ntp package.
--
see shy jo