diff options
Diffstat (limited to 'core/modules/pam-slx-plug/data/opt/openslx/pam/exec_auth')
-rwxr-xr-x | core/modules/pam-slx-plug/data/opt/openslx/pam/exec_auth | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_auth b/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_auth index 6bbe8bdc..cd8a2ecd 100755 --- a/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_auth +++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_auth @@ -88,6 +88,9 @@ if [ "$(echo "${USER_UID}${USER_GID}${USER_GROUP}${USER_HOME}" | wc -l)" != "1" exit 1 fi +# If not run as root, we're done here as the directory mount stuff etc. doesn't make any sense +[ "$SCRIPT_USER" = "root" ] || exit 0 + # Make sure group exists locally GROUPENT= if [ -n "$USER_GID" ]; then |