From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076329121128.tru64-unix-managers.marc@archive.invalid> From: Kevin Lentin Date: Tue, 06 Feb 1996 00:49:38 +0000 To: tru64-unix-managers Subject: password policy X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076329121128 My security woes continue... Actually most thigns are working excellently and somebody even suggested a way to create accounts with expired passwords yet not have to impose restrictive password lifetimes. BUT Because of the way our account creation system works, I want to turn off password policy checking for the first password chnage. This should be easy... Our createaccount program writes the pr_passwd entry with u_restrict turned off, runs passwd and then turns u_restrict on again (or removes the entry, thus giving the default). For some reason, this does not work. passwd is still complaining about illegal passwords. /etc/auth/system/default looks like this: default:\ :d_name=default:\ :d_secclass=c2:\ :d_boot_authenticate@:\ :d_pw_expire_warning#3456000:\ :d_pw_site_callout=/tcb/bin/pwpolicy:\ :u_pwd=*:\ :u_cmdpriv=boot,ping,printerstat,tape:\ :u_syspriv=execsuid,chmodsugid:\ :u_basepriv=execsuid,chmodsugid:\ :u_minchg#0:u_minlen#6:u_maxlen#20:u_exp#315360000:\ :u_life#0:u_pickpw:u_restrict:u_policy:\ :u_pwdepth#0:u_nullpw@:u_genchars@:u_genletters@:\ :u_maxtries#5:u_lock@:\ :t_logdelay#2:t_maxtries#10:t_unlock#0:t_lock@:\ :t_login_timeout#60:\ :chkent: And /tcb/files/auth/f/frob looks like this: frob:u_name=frob:u_id#3041:u_oldcrypt#0:\ :u_pwd=Nologin:\ :u_exp#60480000:u_unsucchg#823242723:u_restrict@:\ :chkent: According to people who I have asked, the manual pages, and good old common sense, this should allow me to enter _any_ password for this user until the u_restrict@ is removed. Nope. It still restricts passwords. Ideas? -- [=======================================================================] [ Kevin Lentin |finger kevinl@fangorn.cs.monash.edu.au| ] [ K.Lentin@cs.monash.edu.au |for PGP public key block. Fingerprint | ] [ Macintrash: 'Just say NO!' |6024308DE1F84314 811B511DBA6FD596 | ] [=======================================================================]