From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078694111364.tru64-unix-managers.marc@archive.invalid> From: Brian Weaver Date: Mon, 16 Feb 1998 19:27:59 +0000 To: tru64-unix-managers Subject: Problem with useradd X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078694111364 I'm running 4.0b jumbo patch kit 6, Enhanced Security. Just recently, then useradd command started added the u_exp, u_life, and u_expdate fields to a users protected password entry. This is throwing off our email system, because the authentication program it uses sees u_exp#0 and thinks the password is expired, or sees u_life#0 and thinks the password lifetime is up.. Look at the following. As you can see, no expire is set in the default, but yet it is setting it to 944982000. What gives? Can someone tell me where the config file for useradd is, or if there is a way to make it not add u_exp, u_life, and u_expdate when it adds accounts? I'm getting ready to switch back to my own useradd program where I just stuff the entry at the end of /etc/passwd and use edauth -s to build my own prpasswd entry for the account.. Our imap server may be brain dead in that it take exp#0 to mean the password is expired instead of "no password expiration" but I would still like to know if I can get useradd to leave it out altogether.. weaver@alpha [/etc/auth/system] useradd -D Distributed = 0 Local = 1 Administrative Lock Applied = 0 Next User id = 200 Minimum User id = 12 Maximum User id = 65535 Primary Group = users,15 Base Directory = /usr/users Skeleton Directory = /usr/skel Shell = /bin/ksh Inactive (days) = s <<<**** where did "s" come from? Expire (date) = weaver@alpha [/etc/auth/system] useradd testu weaver@alpha [/etc/auth/system] edauth -g testu testu:u_name=testu:u_id#9292:u_exp#0:u_life#0:\ :u_expdate#944982000:chkent: I did a useradd -D -f -1 to clean up the inactive, and now using useradd gives weaver@alpha [/etc/auth/system] useradd testy useradd: Login Restrictions: Maximum Login Interval is invalid even though the -1 is in the man page. Doing a useradd -D -f 0 brings the "s" back.. Things are strange. ------------------------------------------------------------------------ Brian Weaver weaver(at)psd.k12.co.us UNIX Guru Poudre School District, Ft. Collins, CO. http://www.psd.k12.co.us