Problem with useradd

From: Brian Weaver <weaver_at_psd.k12.co.us>
Date: Mon, 16 Feb 1998 12:27:59 -0700 (MST)

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_at_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_at_alpha [/etc/auth/system] useradd testu
weaver_at_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_at_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
Received on Mon Feb 16 1998 - 20:29:37 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT