Bug 846129
| Summary: | Freenx-server does not install properly | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fred <frcjean> |
| Component: | freenx-server | Assignee: | Axel Thimm <Axel.Thimm> |
| Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | Axel.Thimm, gwync, ville.skytta |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-11 08:08:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Fred
2012-08-06 22:24:34 UTC
The freenx-server package does try to create the user: $ rpm -qp --scripts freenx-server-0.7.3-27.fc17.x86_64.rpm | grep -A 2 preinstall preinstall scriptlet (using /bin/sh): /usr/sbin/useradd -r -d /var/lib/nxserver/home -s /usr/libexec/nx/nxserver nx 2>/dev/null \ || /usr/sbin/usermod -d /var/lib/nxserver/home -s /usr/libexec/nx/nxserver nx 2>/dev/null || : ...and from your log: Setting up special user "nx" ...useradd: cannot create directory /var/lib/nxserver/home What we need to know is why useradd is not able to create the dir. It works just fine for me on F-17. The error message says "useradd: cannot create directory /var/lib/nxserver/home", but the directory got created anyway, with the .ssh directory and everything. So the error message is probably not representative of what the problem is. I executed the command sudo /usr/sbin/useradd -r -d /var/lib/nxserver/home -s /usr/libexec/nx/nxserver nx -g nx and the nx user, group, and home directory were successfully created. Next I executed sudo userdel -r nx to remove the user, the group, and the home directory (I verified that the nx user, group, and home directory were correctly deleted). Then I tried to reinstall the freenx-server package, and surprisingly, there were no "warning: user nx does not exist - using root" messages this time! Then I executed the nxsetup script, and it worked! - no "useradd: cannot create directory /var/lib/nxserver/home" error message anymore... And the freenx server works perfectly... I don't know what is wrong, but it is very strange because this is a fresh install of Fedora 17 on newly created partitions (thus no configuration files left by other installs). There seems to be some conditions were the nx user can't be created properly. I'm afraid some kind of a reliable reproducer is required before more can be said/done, closing as CANTFIX until one appears. |