Bug 781737
Summary: | ntp-4.2.6p4-1.fc17.i686 cannot install because user ntp is not present | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Wendell Baker <wendellcraigbaker> |
Component: | shadow-utils | Assignee: | Peter Vrabec <pvrabec> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mlichvar, pertusus, pvrabec, tmraz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-11 08:39:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Wendell Baker
2012-01-14 18:39:23 UTC
The ntp user is created in the ntpdate package. If useradd fails, there is not much we can do here. Reassigning to shadow-utils. From https://bugzilla.redhat.com/show_bug.cgi?id=771449 The workaround developed (for rawhide) therein was: bash-4.2$ sudo /sbin/restorecon -v -v -R /etc/{passwd,passwd-,group,shadow,gshadow} /sbin/restorecon reset /etc/passwd- context system_u:object_r:etc_t:s0->system_u:object_r:passwd_file_t:s0 Yet the user ntp still wasn't created on 'yum reinstall -y ntp ntpdate' bash-4.2$ rpm -q --scripts ntpdatepreinstall scriptlet (using /bin/sh): /usr/sbin/groupadd -g 38 ntp 2> /dev/null || : /usr/sbin/useradd -u 38 -g 38 -s /sbin/nologin -M -r -d /etc/ntp ntp 2>/dev/null || : Perhaps ignoring errors and stderr away to /dev/null isn't a great idea. For completeness, here's the full log of what I did to get to Happy. (first installing only ntp, but then reinstalling ntp and ntpdate, then manually creating the user and group after doing the restorecon indicated in 771449) bash-4.2$ sudo yum reinstall -y ntp | sudo tee -a /tmp/o.yum_install.out Loaded plugins: langpacks, presto, refresh-packagekit Setting up Reinstall Process Resolving Dependencies --> Running transaction check ---> Package ntp.i686 0:4.2.6p4-2.fc17 will be reinstalled --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Reinstalling: ntp i686 4.2.6p4-2.fc17 rawhide 582 k Transaction Summary ================================================================================ Reinstall 1 Package Total download size: 582 k Installed size: 1.8 M Downloading Packages: Running Transaction Check Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ntp-4.2.6p4-2.fc17.i686 1/1 warning: group ntp does not exist - using root warning: user ntp does not exist - using root warning: group ntp does not exist - using root warning: user ntp does not exist - using root warning: group ntp does not exist - using root Verifying : ntp-4.2.6p4-2.fc17.i686 1/1 Installed: ntp.i686 0:4.2.6p4-2.fc17 Complete! bash-4.2$ finger ntp finger: ntp: no such user. (understood that this is the wrong package to query) bash-4.2$ rpm -q --scripts ntp postinstall scriptlet (using /bin/sh): /bin/systemctl daemon-reload &> /dev/null || : preuninstall scriptlet (using /bin/sh): if [ "$1" -eq 0 ]; then /bin/systemctl --no-reload disable ntpd.service &> /dev/null /bin/systemctl stop ntpd.service &> /dev/null fi : postuninstall scriptlet (using /bin/sh): /bin/systemctl daemon-reload &> /dev/null if [ "$1" -ge 1 ]; then /bin/systemctl try-restart ntpd.service &> /dev/null fi : bash-4.2$ rpm -q ntp ntp-4.2.6p4-2.fc17.i686 bash-4.2$ sudo yum reinstall -y ntp ntpdate | sudo tee -a /tmp/o.yum_install.out Loaded plugins: langpacks, presto, refresh-packagekit Setting up Reinstall Process Resolving Dependencies --> Running transaction check ---> Package ntp.i686 0:4.2.6p4-2.fc17 will be reinstalled ---> Package ntpdate.i686 0:4.2.6p4-2.fc17 will be reinstalled --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Reinstalling: ntp i686 4.2.6p4-2.fc17 rawhide 582 k ntpdate i686 4.2.6p4-2.fc17 rawhide 74 k Transaction Summary ================================================================================ Reinstall 2 Packages Total download size: 656 k Installed size: 1.9 M Downloading Packages: -------------------------------------------------------------------------------- Total 465 kB/s | 656 kB 00:01 Running Transaction Check Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ntpdate-4.2.6p4-2.fc17.i686 1/2 Installing : ntp-4.2.6p4-2.fc17.i686 2/2 warning: group ntp does not exist - using root warning: user ntp does not exist - using root warning: group ntp does not exist - using root warning: user ntp does not exist - using root warning: group ntp does not exist - using root Verifying : ntp-4.2.6p4-2.fc17.i686 1/2 Verifying : ntpdate-4.2.6p4-2.fc17.i686 2/2 Installed: ntp.i686 0:4.2.6p4-2.fc17 ntpdate.i686 0:4.2.6p4-2.fc17 Complete! bash-4.2$ finger ntp finger: ntp: no such user. bash-4.2$ rpm -q --scripts ntpdate preinstall scriptlet (using /bin/sh): /usr/sbin/groupadd -g 38 ntp 2> /dev/null || : /usr/sbin/useradd -u 38 -g 38 -s /sbin/nologin -M -r -d /etc/ntp ntp 2>/dev/null || : postinstall scriptlet (using /bin/sh): /bin/systemctl daemon-reload &> /dev/null || : preuninstall scriptlet (using /bin/sh): if [ "$1" -eq 0 ]; then /bin/systemctl --no-reload disable ntpdate.service &> /dev/null /bin/systemctl stop ntpdate.service &> /dev/null fi : bash-4.2$ sudo /sbin/restorecon -v -v -R /etc/{passwd,passwd-,group,shadow,gshadow} /sbin/restorecon reset /etc/passwd- context system_u:object_r:etc_t:s0->system_u:object_r:passwd_file_t:s0 bash-4.2$ sudo yum reinstall -y ntp ntpdate | sudo tee -a /tmp/o.yum_install.out Loaded plugins: langpacks, presto, refresh-packagekit Setting up Reinstall Process Resolving Dependencies --> Running transaction check ---> Package ntp.i686 0:4.2.6p4-2.fc17 will be reinstalled ---> Package ntpdate.i686 0:4.2.6p4-2.fc17 will be reinstalled --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Reinstalling: ntp i686 4.2.6p4-2.fc17 rawhide 582 k ntpdate i686 4.2.6p4-2.fc17 rawhide 74 k Transaction Summary ================================================================================ Reinstall 2 Packages Total download size: 656 k Installed size: 1.9 M Downloading Packages: -------------------------------------------------------------------------------- Total 643 kB/s | 656 kB 00:01 Running Transaction Check Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ntpdate-4.2.6p4-2.fc17.i686 1/2 Installing : ntp-4.2.6p4-2.fc17.i686 2/2 warning: group ntp does not exist - using root warning: user ntp does not exist - using root warning: group ntp does not exist - using root warning: user ntp does not exist - using root warning: group ntp does not exist - using root Verifying : ntp-4.2.6p4-2.fc17.i686 1/2 Verifying : ntpdate-4.2.6p4-2.fc17.i686 2/2 Installed: ntp.i686 0:4.2.6p4-2.fc17 ntpdate.i686 0:4.2.6p4-2.fc17 Complete! bash-4.2$ rpm -q --scripts ntpdate preinstall scriptlet (using /bin/sh): /usr/sbin/groupadd -g 38 ntp 2> /dev/null || : /usr/sbin/useradd -u 38 -g 38 -s /sbin/nologin -M -r -d /etc/ntp ntp 2>/dev/null || : postinstall scriptlet (using /bin/sh): /bin/systemctl daemon-reload &> /dev/null || : preuninstall scriptlet (using /bin/sh): if [ "$1" -eq 0 ]; then /bin/systemctl --no-reload disable ntpdate.service &> /dev/null /bin/systemctl stop ntpdate.service &> /dev/null fi : bash-4.2$ sudo /usr/sbin/groupadd -g 38 ntp bash-4.2$ sudo /usr/sbin/useradd -u 38 -g 38 -s /sbin/nologin -M -r -d /etc/ntp ntp bash-4.2$ sudo yum reinstall -y ntp ntpdate | sudo tee -a /tmp/o.yum_install.out Loaded plugins: langpacks, presto, refresh-packagekit Setting up Reinstall Process Resolving Dependencies --> Running transaction check ---> Package ntp.i686 0:4.2.6p4-2.fc17 will be reinstalled ---> Package ntpdate.i686 0:4.2.6p4-2.fc17 will be reinstalled --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Reinstalling: ntp i686 4.2.6p4-2.fc17 rawhide 582 k ntpdate i686 4.2.6p4-2.fc17 rawhide 74 k Transaction Summary ================================================================================ Reinstall 2 Packages Total download size: 656 k Installed size: 1.9 M Downloading Packages: -------------------------------------------------------------------------------- Total 628 kB/s | 656 kB 00:01 Running Transaction Check Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ntpdate-4.2.6p4-2.fc17.i686 1/2 Installing : ntp-4.2.6p4-2.fc17.i686 2/2 Verifying : ntp-4.2.6p4-2.fc17.i686 1/2 Verifying : ntpdate-4.2.6p4-2.fc17.i686 2/2 Installed: ntp.i686 0:4.2.6p4-2.fc17 ntpdate.i686 0:4.2.6p4-2.fc17 Complete! bash-4.2$ systemctl status ntpd.service ntpd.service - Network Time Service Loaded: loaded (/lib/systemd/system/ntpd.service; enabled) Active: failed since Sat, 14 Jan 2012 10:30:30 -0800; 1 weeks and 2 days ago Main PID: 8705 (code=exited, status=255) CGroup: name=systemd:/system/ntpd.service bash-4.2$ sudo systemctl enable ntpd.service bash-4.2$ sudo systemctl start ntpd.service bash-4.2$ systemctl status ntpd.service ntpd.service - Network Time Service Loaded: loaded (/lib/systemd/system/ntpd.service; enabled) Active: active (running) since Tue, 24 Jan 2012 09:52:33 -0800; 3s ago Main PID: 8682 (ntpd) CGroup: name=systemd:/system/ntpd.service └ 8682 /usr/sbin/ntpd -n -u ntp:ntp -g Happy. *** This bug has been marked as a duplicate of bug 771449 *** |