forcing a password change in terminal

I have SSH access via windows mobile and pocketPuTTY and a lot of support requests are for forgotten passwords.

Is there a simple command after using passwd username to change the password that will force a password change on the next login?

I looked at chage -d 0 username but it does not seem to work on OSX

Is there an alternative or flag for passwd that can achieve this?

X-Serve 1.33Ghz - OSXS 10.4.8, Mac OS X (10.4.8), 11 Intel iMacs, 22 eMacs, 26 XP Boxes

Posted on Jan 5, 2007 7:32 AM

Reply
4 replies

Jan 5, 2007 9:55 AM in response to R.Cerny

that looked very hopefull until I actually tried to impliment it, am I doing something wrong here? I tried logging into the server as root and issuing the following command.

pwpolicy -u astudent newPasswordRequired

It did not present any errors but when I log in as astudent it does not ask me to change my password.

I also tried

pwpolicy -u astudent -p newpassword

And that did not change the password either. passwd astudent however allows me to change it.

Do I need to specify the LDAP information as well as it seemed to be the answer to my problem but does not seem to work.

Thanks, I am sure I will get there in the end

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

forcing a password change in terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.