[Bug 1155685] New: useradd created wrong home directory

http://bugzilla.opensuse.org/show_bug.cgi?id=1155685 Bug ID: 1155685 Summary: useradd created wrong home directory Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: axel.braun@gmx.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I had the following definition in the spec-file: getent passwd tryton > /dev/null || %{_sbindir}/useradd -r -g tryton \ -d %{_localstatedir}/lib/%{name} -s /sbin/nologin \ -c 'Tryton ERP' tryton || : where %{name} translates to trytond Result: The user tryton was created, and as home directory /var/lib/trytond was entered. But this directory was not created: Instead, the directory /var/lib/tryton was created. As a result, the user did not find his home directory...and printing failed for that reason. Should useradd (or whatever) not create the home directory according to the definition (-d) instead of the user name? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com