make users change pswd on 1st login
Hi, I have set up a sftp/ssh server at home, and I would like to give access to my friends. I am the only admin, and only I can add users. However, I would like to give them the freedom to pick their passwords. Most of my friends don't know jack about UNIX, so I would like to make them change their passwords with a nice looking script, on the first login. how can I do that. I am thinking about writing a shell script, but how can I make it execute only on the first login. I am open to other solutions as well.
Thanx for any help |
As far as shell access (SSH) goes, once you create the account, run:
Code:
passwd -e username Code:
login as: oracle |
Thanks a lot,
That's exactly what I needed! Ivan |
No problem :)
|
All times are GMT -5. The time now is 04:16 PM. |