[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: force password change on first logon
The format is "Dec 1, 2000". I modified my change
field to "Dec 1, 2000", tried to login, and got
"Sorry -- your password has expired." .
The following as the initial shell will do:
(add the filename to /etc/shells)
#!/bin/sh
if /usr/bin/passwd
then
/usr/bin/chpass -s /bin/ksh
exec /bin/ksh -l
fi
Mike
> -----Original Message-----
> From: Jeff Bachtel [mailto:sebastion@irelandmail.com]
> Sent: Thursday, November 30, 2000 12:33 PM
> To: Tod McQuillin; misc@openbsd.org
> Subject: Re: force password change on first logon
>
>
> That would be the excessively silly way to go about it :)
>
> # chpass jeff
>
> and it brings up vi with:
> Change [month day year]:
> Expire [month day year]:
>
> Not much of a way to make it easier than that ;) If you know the date
> format used by passwd (which I admit baffles me), then you can modify
> adduser to set a user's password to be changed on first login.
>
> jeff
>
> On Thu, Nov 30, 2000 at 04:22:50AM -0600, Tod McQuillin wrote:
> > On Thu, 30 Nov 2000, Elin, Sergey wrote:
> >
> > > It's possible by using standart passwd(1) command at any
> time (inluding
> > > first logon ;))
> >
> > Possible but still optional.
> >
> > If I needed to ensure that the default password was changed
> before each
> > use, I'd write a program to 1) run passwd(1) until the password is
> > confirmed changed, 2) set the user's shell in /etc/passwd
> to a real shell
> > (/bin/sh, etc), 3) exec that shell for the user.
>