Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force user to change password at next logon

Status
Not open for further replies.

peterve

IS-IT--Management
Mar 19, 2000
1,348
NL
Hi,

How can I configure my Red Hat Linux Enterprise 4 AS to force a useraccount to change his password at next logon ?
I used to do this with passwd -f under Solaris, but this doesn't work anymore

I've tried chage -d0 <username> but that doesn't do anything either...



--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
usermod" allows you to set the "expire date" with the "-e" switch.
You might also wish to use the "-f" option to stop the account being locked completely.


Trojan.
 
what is the syntax ? I don't want to put in a date or so, I just want to script the 'force user to change his password at next logon'... without having to take care about the date or time



--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
passwd -x 0 [username]

or passwd -x 30 [username] to make em change it every 30 days.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
so what do I do to
- force the user to change it at next logon
- make sure the user has to change it every 90 days


--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
I've tested passwd -x 0 username and that didn't work

--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
I'm using ES4 too,
[root@xxx ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 1)

better than plastic surgery :
[root@xxx ~]# passwd -x 0 joancollins
Adjusting aging data for user joancollins.
passwd: Success


login as: joancollins
joancollins@xxx.xxx.xxx.xxx's password:
Warning: your password will expire in 0 days
Last login: Tue Oct 18 10:15:27 2005 from xxxxxxxxxxxx


______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top