I have run into a strange issue with useradd under Tru64 5.1B pk3.
We are rebuilding machines on 5.1B, and then using a script to add
the old users back with the same uids, gids, and secondary groups.
The useradd statements all seem to work fine, but part of the entries
are coming up locked and part of them are not. I then proceeded to take
a simple script adding 16 users with the same useradd commands and got
random results in the auth database. The useradd statements were as
follows
useradd -c"user1" -d/usr/users/user1 -gxxxprov -Gxxx -m -s/usr/bin/ksh
-u315 -xadministrative_lock_applied=0 passwd_must_change=1 user1
Each iteration ups the username and uid by 1. The results in the authdb
are here
user0:u_name=user0:u_id#324:u_pwd=^B:u_succhg#1076361619:\
:u_pwchanger=root:u_oldcrypt#0:u_lock_at_:u_psw_change_reqd:\
:chkent:
user1:u_name=user1:u_id#315:u_pwd=^B:u_succhg#1076361618:\
:u_pwchanger=root:u_oldcrypt#0:u_lock_at_:u_psw_change_reqd:\
:chkent:
user2:u_name=user2:u_id#316:u_lock_at_:u_psw_change_reqd:\
:chkent:
user3:u_name=user3:u_id#317:u_lock_at_:u_psw_change_reqd:\
:chkent:
user4:u_name=user4:u_id#318:u_lock_at_:u_psw_change_reqd:\
:chkent:
user5:u_name=user5:u_id#319:u_lock_at_:u_psw_change_reqd:\
:chkent:
user6:u_name=user6:u_id#320:u_pwd=^B:u_succhg#1076361618:\
:u_pwchanger=root:u_oldcrypt#0:u_lock_at_:u_psw_change_reqd:\
:chkent:
user7:u_name=user7:u_id#321:u_pwd=^B:u_succhg#1076361619:\
:u_pwchanger=root:u_oldcrypt#0:u_lock_at_:u_psw_change_reqd:\
:chkent:
user8:u_name=user8:u_id#322:u_pwd=^B:u_succhg#1076361619:\
:u_pwchanger=root:u_oldcrypt#0:u_lock_at_:u_psw_change_reqd:\
:chkent:
user9:u_name=user9:u_id#323:u_pwd=^B:u_succhg#1076361619:\
:u_pwchanger=root:u_oldcrypt#0:u_lock_at_:u_psw_change_reqd:\
:chkent:
usera:u_name=usera:u_id#325:u_pwd=^B:u_succhg#1076361619:\
:u_pwchanger=root:u_oldcrypt#0:u_lock_at_:u_psw_change_reqd:\
:chkent:
userb:u_name=userb:u_id#326:u_lock_at_:u_psw_change_reqd:\
:chkent:
userc:u_name=userc:u_id#327:u_lock_at_:u_psw_change_reqd:\
:chkent:
userd:u_name=userd:u_id#328:u_lock_at_:u_psw_change_reqd:\
:chkent:
usere:u_name=usere:u_id#329:u_lock_at_:u_psw_change_reqd:\
:chkent:
userf:u_name=userf:u_id#330:u_lock_at_:u_psw_change_reqd:\
:chkent:
Have I found a bug in useradd, or am I just missing something
Kevin Zupan
Unix/Network Administration
Intrado Inc.
kzupan_at_intrado.com
Received on Wed Feb 11 2004 - 23:23:01 NZDT