Removing a password with terminal

Hey well I am having a minor crisis and I was reading around and it sounds like my problem have happened to others as well. So here's the problem: An account with restricted access that is not allowed to change passwords was used in this. Wanting to see if it was still possible to set a password on the account by using Terminal, I used the passwd command. Once I found I could put a password on the account, I wanted to take it off. But the passwd command doesn't do that, so I was stuck with a password I didn't want on a restricted account. Now I don't know remove it from the restricted account.

This is exactly what happened to "Owen Pragel" here http://discussions.apple.com/thread.jspa?messageID=5256807&tstart=0

But unfortunately I cannot figure out how he fixed it through reading his thread, it is confusing. But I would appreciate it is someone could tell me how I could remove a password with terminal? I can change it, but I can't seem to remove it... Is there a way to do it (without the install disk)?

MacBook

Posted on Nov 13, 2007 2:48 PM

Reply
2 replies

Nov 13, 2007 8:01 PM in response to paultelford1

Hmm, in Tiger and Leopard, I think that sets the password to blank, which isn't quite the same as removing the password. I'm not sure what the proper procedure is, but this might work:<pre>
sudo /usr/bin/dscl . -delete /users/username AuthenticationAuthority</pre>

In Leopard, this also seems to have the effect of deleting the users password hash files, essentially removing the password.

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.

Removing a password with terminal

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