|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: @ T p
Length: 1041 (0x411)
Types: TextFile
Notes: @(#)pswdchk.sh 13.1 (RC International) 91/07/25
Names: »pswdchk«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/sadm/sysadm/bin/pswdchk«
# @(#)pswdchk.sh 13.1 (RC International) 91/07/25 # Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T # The copyright notice above does not evidence any # actual or intended publication of such source code. #!/sbin/sh #ident "@(#)oamintf:usermgmt/pswdchk.sh 1.4" #pswdchk # for running password command to modify aging information pwlogin=$1 pwchoice=$2 pwmax=$3 if [ "$4" = " " ] || [ "$4" = "" ] then pwmin="-n 0" else pwmin="-n $4" fi if [ "$5" = " " ] || [ "$5" = "" ] then pwwarn="-w 0" else pwwarn="-w $5" fi if [ "$pwmax" = " " ] || [ "$pwmax" = "" ] then pwmax="-1" fi if [ "$pwmax" = "-1" ] then pwmin= pwwarn= fi case "$pwchoice" in 'lock' ) /usr/bin/passwd -l -x $pwmax $pwmin $pwwarn $pwlogin >/tmp/pswdchk 2>&1 ;; 'no password' ) /usr/bin/passwd -d -x $pwmax $pwmin $pwwarn $pwlogin >/tmp/pswdchk 2>&1 ;; 'password' | 'new password' ) /usr/bin/passwd -x $pwmax $pwmin $pwwarn $pwlogin >/tmp/pswdchk 2>&1 esac