diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2008-07-30 18:37:21 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2008-07-30 18:37:21 +0000 |
| commit | 662c90c800c36de052d5e73c07ae925045c4e3ef (patch) | |
| tree | 443f9005d9fdc8353b3276443890a282fcb490b7 | |
| parent | 24bbc85bf6aa71e985016839a31c861da99b9276 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/adduser/rmuser.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/adduser/rmuser.sh b/usr.sbin/adduser/rmuser.sh index d263217c15c2..6b092253b709 100644 --- a/usr.sbin/adduser/rmuser.sh +++ b/usr.sbin/adduser/rmuser.sh @@ -33,6 +33,7 @@ MAILSPOOL="/var/mail" SIGKILL="-KILL" TEMPDIRS="/tmp /var/tmp" THISCMD=`/usr/bin/basename $0` +PWCMD="${PWCMD:-/usr/sbin/pw}" # err msg # Display $msg on stderr. @@ -178,7 +179,7 @@ rm_user() { } ! verbose && echo -n " passwd" verbose && echo -n " from the system:" - pw userdel -n $login $pw_rswitch + ${PWCMD} userdel -n $login $pw_rswitch verbose && echo ' Done.' } @@ -343,7 +344,7 @@ for _user in $userlist ; do fi # Disable any further attempts to log into this account - pw 2>/dev/null lock $_user + ${PWCMD} 2>/dev/null lock $_user # Remove crontab, mail spool, etc. Then obliterate the user from # the passwd and group database. |
