How do you . . . . setting up a user to force him to change his password?
I have been banging my head (and the keyboard with google.com/linux) trying to come up with an answer/solution. When setting up a new user, I want to be able to expire the user's temporary password, allowing the user to login with the temporary password, but force him/her to create his own password on the first login. I know how to set the INACTIVE value in the /etc/shadow file, but is there a command to modify the account without manually modifying the /etc/shadow create date (to expire) to do this? James Chaplin Systems Programmer, MVS, zVM & zLinux Base Technologies, Inc Supporting the zSeries Platform Team -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: How do you . . . . setting up a user to force him to change his password?
Am Dienstag 13 Oktober 2009 17:31:01 schrieb CHAPLIN, JAMES (CTR): > When setting up a new user, I want to be able to expire the user's > temporary password, allowing the user to login with the temporary > password, but force him/her to create his own password on the first > login. > > I know how to set the INACTIVE value in the /etc/shadow file, but is > there a command to modify the account without manually modifying the > /etc/shadow create date (to expire) to do this? I think the expire feature of passwd might be your friend: # passwd -e -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: How do you . . . . setting up a user to force him to change his password?
Hi, On Tue, Oct 13, 2009 at 11:31, CHAPLIN, JAMES (CTR) < james.chap...@associates.dhs.gov> wrote: [...] > > is there a command to modify the account without manually modifying the > /etc/shadow create date (to expire) to do this? > > Assuming the password can expire (EXPIRE_DATE != -1) : chage -d 0 username Regards, Dominic Coulombe -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: How do you . . . . setting up a user to force him to change his password?
Thanks for pointing me in the right direction, this was the solution I was missing, wrote a great script to get the job done. James Chaplin Systems Programmer, MVS, zVM & zLinux Base Technologies, Inc Supporting the zSeries Platform Team -Original Message- From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of Dominic Coulombe Sent: Tuesday, October 13, 2009 11:39 AM To: LINUX-390@VM.MARIST.EDU Subject: Re: How do you . . . . setting up a user to force him to change his password? Hi, On Tue, Oct 13, 2009 at 11:31, CHAPLIN, JAMES (CTR) < james.chap...@associates.dhs.gov> wrote: [...] > > is there a command to modify the account without manually modifying the > /etc/shadow create date (to expire) to do this? > > Assuming the password can expire (EXPIRE_DATE != -1) : chage -d 0 username Regards, Dominic Coulombe -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390