On 13 Jan 1999, Gavin Budd writes: > I have the shadow support enabled and I would like to find a way to > either when a new account is created to set the days since password > last changed to 0 (using chage -d 0 user) or another way to force a > password change at first login. Anyone know of any way to do this? User Accounts -> Policies -> Password & account policies Set the 'Post create command' field to the path to a script that does what you need. Read /usr/lib/linuxconf/lib/account*.sh to see how this system of scripts works. It should be pretty trivial to do what you need with this. My guess (not tested!!) is that a script as simple as: #!/bin/sh . /usr/lib/linuxconf/lib/accountcmd.sh /usr/bin/chage -d 0 $USERID would do it. Jonathan -- Jonathan Marsden | Internet: [EMAIL PROTECTED] | Making electronic 1849 N. Wabash Ave.| Phone: +1 (909) 794 1151 | communications work Redlands, CA 92374 | FAX: +1 (909) 794 3016 | reliably for Christian USA | http://www.xc.org/jonathan | missions worldwide --- You are currently subscribed to linuxconf as: [[email protected]] To unsubscribe, forward this message to [EMAIL PROTECTED]
