Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Remove last used username from login screen System
By default the login window retains the name of the last person to log in. This annoys me, since I usually have to erase someone else's name when I go to log in. To make the login window not display this information, do the following:

Edit the file /Library/Preferences/ You'll need to be have root privileges, so you'll most likely want to open the terminal and sudo pico /Library/Preferences/ Add the following two lines right after the <dict> tag:
When you log out, the user name field in the login window will be blank the next time you go to log in.
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)

Remove last used username from login screen | 5 comments | Create New Account
Click here to return to the 'Remove last used username from login screen' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Can a default login name be default?
Authored by: barrysharp on Dec 28, '01 01:37:33PM

Rather than clearing the login name I wonder if a default login name could be configured -- this might be a better soln for the original poster -- just a thought mind you -- Happy holidays & New Year.

Regards... Barry Sharp

[ Reply to This | # ]
I can't make this work...
Authored by: kananga on Dec 30, '01 06:50:54PM

I've tried this, and each time the plist changes back to the "show list of users" setting. Either I'm doing something wrong, or this doesn't work. Any suggestions? I've been trying to find out how to do this for months!

[ Reply to This | # ]
I can't make this work...
Authored by: drool_rockworm on Dec 30, '01 08:01:13PM

Try using Pseudo to launch PropertyListEditor (dev tools) as root (Or <sudo open> in terminal ,I guess) to edit /Library?Preferences/ Note this is the root /Library.

Add a third sibling
>AlwaysClearUserField, and choose <boolean><yes>tags.

Thats it. The other loginwindow.plist in the directory is automatically generated, and shows the uid of who logged in last.


[ Reply to This | # ]
No longer works in 10.1.3
Authored by: JohnnyMnemonic on Feb 24, '02 02:54:18PM
I had this working with no problem in 10.1.2, and preferred it for security reasons. However, the update to 10.1.3 appears to have disabled it, although I checked and the com file itself wasn't overwritten--the "AlwaysClear" tag was still there and the flag was still set to 'true'.

I suspect that whatever called "AlwaysClear" is not doing that any longer; I wonder if the same tag can be used somewhere else, if a different tag needs to be used here or somewhere else, or if Apple, for reasons only known to them, have disabled this ability altogether.

Any thoughts?

[ Reply to This | # ]
Works OK for me
Authored by: mcsquared on Apr 18, '02 04:09:46AM

Seems to be working here ... 10.1.4

[ Reply to This | # ]