diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh index 7e21cb5286e9..050f2b1331fa 100644 --- a/usr.sbin/adduser/adduser.sh +++ b/usr.sbin/adduser/adduser.sh @@ -142,7 +142,8 @@ fullpath_from_shell() { done # /usr/sbin/nologin is a special case - if [ "$_shell" = "${NOLOGIN}" ]; then + if [ "$_shell" = "${NOLOGIN}" -o \ + "$_shell" = "${NOLOGIN_PATH}" ]; then echo ${NOLOGIN_PATH} return 0; fi