[plug] useradd

Alan Graham alan.graham at infonetsystems.com.au
Mon May 20 18:12:50 WST 2002


As far as I can see, there's no explanation.  Check out
/etc/default/useradd and /etc/login.defs for interest, but the command
line options that you've used are *supposed* to overwrite these anyway.

The problem (and I'm sure you already know this) is that the 8th field
(11827) is the days after which the account is disabled.  This is the
same as the 3rd field, days since passwd was last changed, so the
account is disabled on creation.  Bummer.

To change the numbers, use chage.  It has an interactive mode, if you
want to play with it.

The last field is reserved.  No idea what it does.

Alan

On Mon, 2002-05-20 at 16:29, Patrick Tehvand wrote:
> i am using the command
> 
> useradd -c"test" -d/home/webusers/test -e0 -f0 -g100 -m -k/etc/skel -s/bin/ftponly test
> 
> which results in:
> /etc/passwd entry:
>  test:x:914:100:test:/home/webusers/test:/bin/ftponly
> /etc/shadow entry:
> test:$1$PlQ4HVS5$9N/QAV0kcK3DOpuQ1VfTE1:11827:0:99999:0:0:11827:134540324
> 
> my question being what are the final numbers in the shadow entry, how do i get rid of them, and why is the account expiring after a couple of days?
> 
> Patrick <- scratching his head
> 
> 
> _____________________________________________________________________
> This e-mail is brought to you 100% virus free by Perth iX using MessageLabs SkyScan scanning service. For more information please call Perth iX on +61 8 92166600 or email info at perthix.net.
> 




More information about the plug mailing list