How can I add a user, and have them forced to change their password on 
first logon?  This will be on Deb 3.0

On my *BSD boxen I have a file called "change"

#!/bin/sh
if /usr/bin/passwd
then
   /usr/bin/chpass -s /bin/ksh
   exec /usr/local/bin/bash --login
fi

This is put into /etc/shells (making it a valid shell) and the user made to 
have this script as a shell.

Will this work on Debian, or is there a way to make PAM do what I want?

cheers,
Rob

--
I'm just a revved up youth on a thrill-kill rampage.

This is random quote 679 of a collection of 1251
[15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to