[NTLUG:Discuss] Default password?
Paul Ingendorf
pauldy at wantek.net
Tue Jan 22 21:29:24 CST 2002
At the risk of being proven a moron I'm pretty sure this would have to be done via a program at login to make them change it. However I know you can set password timeouts on most all systems I've ever seen post shadowing anyway. Speaking of which a quick passwd --help showed the following which should answer your question.
#passwd --help
Usage: passwd [OPTION...] <accountName>
-d, --delete delete the password for the named account (root only)
-f, --force force operation
-k, --keep-tokens keep non-expired authentication tokens
-l, --lock lock the named account (root only)
-S, --status report password status on the named account (root
only)
--stdin read new tokens from stdin (root only)
-u, --unlock unlock the named account (root only)
-i, --inactive=INT set the number of days after a password expires, that
the account becomes inactive (root only)
-x, --maximum=INT set the maximum number of days a password remains
valid (root only)
-n, --minimum=INT set the minimum number of days before a password may
be changed (root only)
-w, --warn=INT set the minimum number of days warning that a
password needs to be changed (root only)
-g, --group manipulate group password - passes to gpasswd
-r used only to pass to gpasswd
-R used only to pass to gpasswd
Help options:
-?, --help Show this help message
--usage Display brief usage message
-----Original Message-----
From: discuss-admin at ntlug.org [mailto:discuss-admin at ntlug.org]On Behalf
Of kbrannen at gte.net
Sent: Tuesday, January 22, 2002 8:52 PM
To: discuss at ntlug.org
Subject: Re: [NTLUG:Discuss] Default password?
I agree.
Now let me modify the question somewhat and see if anyone knows this password
question. Lets say I create a new user, set a default password, but want to
force the user to change the password next time he logs in. I don't want to
set any expiration time range (like he must change it every 30 days), I just
want him to change it at his next log in, be it today or next week. On
Solaris, I'd do that with "passwd -f user", but I can find no equivalent for
Linux. Anyone?
Kevin
More information about the Discuss
mailing list