diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh index be779bb73735..c04463d389d0 100644 --- a/usr.sbin/adduser/adduser.sh +++ b/usr.sbin/adduser/adduser.sh @@ -113,7 +113,7 @@ valid_shells() { esac done - # /sbin/nologin is a special case + # /usr/sbin/nologin is a special case [ -x "${NOLOGIN_PATH}" ] && echo -n " ${NOLOGIN}" } @@ -139,7 +139,7 @@ fullpath_from_shell() { esac done - # /sbin/nologin is a special case + # /usr/sbin/nologin is a special case if [ "$_shell" = "${NOLOGIN}" ]; then echo ${NOLOGIN_PATH} return 0; @@ -799,7 +799,7 @@ MAILCMD="${MAILCMD:-mail}" ETCSHELLS="${ETCSHELLS:-/etc/shells}" NOHOME="/nonexistent" NOLOGIN="nologin" -NOLOGIN_PATH="/sbin/nologin" +NOLOGIN_PATH="/usr/sbin/nologin" GREPCMD="/usr/bin/grep" DATECMD="/bin/date"