[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Set passwd on first login?



On Mon, Mar 13, 2000 at 08:38:37PM +0300, Michael Ju. Tokarev wrote:
> Just one another experiment gives me that i can change
> "last password change" field in /etc/shadow to 0 and
> user will be prompted for a password.  That is what I
> wanted.  But anyway, question about manipulation of
> fields in /etc/shadow remain.  Is it possible to made
> password use flags:
> 
>    -f - force password change (set lastchange=0)
>    -n min - set minimum field to min
>    -w warn - set warning field to warn
>    -x max - set maximum field to max
>    etc

"chage" program from shadow-utils does exactly what you want.

Regards
					Andrey V.
					Savochkin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []