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

Change the default user name for AFP connections Network
When you connect to another Mac (or other device) using AFP, did you know you can control what shows up in the Name field? By default, OS X will populate your full user name, but you can change this via some hidden preferences.

For instance, to make the dialog show your short username instead, do this in Terminal:
$ ### in 10.4...
$ defaults write -g com.apple.AppleShareClientCore -dict-add afp_use_default_name -bool NO
$ defaults write -g com.apple.AppleShareClientCore -dict-add afp_use_short_name -bool YES
$
$ ### in 10.5...
$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseDefaultName -bool NO
$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool YES
You can read about the other options, including one to display a custom name, in this Apple article.
    •    
  • Currently 3.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[9,784 views]  

Change the default user name for AFP connections | 4 comments | Create New Account
Click here to return to the 'Change the default user name for AFP connections' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change the default user name for AFP connections
Authored by: ChaChi on Oct 31, '07 08:13:22AM

Just curious, how's this different than changing the computer name in the Sharing pref pane of System Preferences?



[ Reply to This | # ]
Change the default user name for AFP connections
Authored by: brett_x on Oct 31, '07 09:28:35AM

It is a completely different subject. What he's talking about here is when you connect to a share, your user name is auto-populated to authenticate. By default, it is the "Full Name" (as opposed to the short name) of the user account that you're logged in with.



[ Reply to This | # ]
Change the default user name for AFP connections
Authored by: brett_x on Oct 31, '07 09:30:33AM

Yay! It's not in the global domain preferences anymore. What a nice change.



[ Reply to This | # ]
Change the default user name for AFP connections
Authored by: ctierney on Oct 31, '07 10:22:00AM

What a great hint. We still use NT4 domain controllers that only honor short domain user names. In past, I would make a shortcut to the AFP share after mounting, which would fill in this name when used. This is much better. Thanks!
--
Cole



[ Reply to This | # ]