Ticket #13745 (new Bug)

Opened 3 years ago

Plone Unified Installer fails on Suse because of useradd

Reported by: alexg Owned by:
Priority: minor Milestone: 4.x
Component: Unknown Version: 4.2
Keywords: installer, suse Cc:

Description

As seen here  http://comments.gmane.org/gmane.comp.web.zope.plone.setup/5863

It seems useradd on Suse does not accept /bin/false for home directory (-h option).

A fix can be (on 4.3.1r1)

--- Plone-4.3.1r1-UnifiedInstaller/helper_scripts/user_group_utilities.sh
2013-07-04 23:02:32.000000000 +0200
+++ helper_scripts/user_group_utilities.sh    2013-09-12 16:50:17.000000000 +0200
@@ -49,7 +49,7 @@
         TARGET_GROUP="$2"
         NOLOGIN=`which nologin`
-        NOHOME=`which false`
+        NOHOME=`/bin`
         USER_SETTINGS="-g $TARGET_GROUP --shell $NOLOGIN --home $NOHOME"
         id "$TARGET_USER" > /dev/null 2>&1
Note: See TracTickets for help on using tickets.