Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When trying to connect to a server I get the following prompt :

alt text

By default Snow Leopard fill the Name field with Firstname Lastname found in System Pref -> Account -> My Account -> Full Name !

I don't what to change my Full Name to the username I use to login to server !

How do you change the default Name Snow Leopard is using when connecting to server?

share|improve this question

3 Answers 3

up vote 6 down vote accepted

Actually, there is a real way to change this username.

For lazy people :

To set the current user's short name:

$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseDefaultName -bool NO
$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool YES

To set a custom name:

$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseDefaultName -bool YES
$ defaults write /Library/Preferences/com.apple.NetworkAuthorization DefaultName "user"
Replace "user" with the desired custom name and enclose it in quotation marks.

To set no name:

$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseDefaultName -bool YES
$ defaults write /Library/Preferences/com.apple.NetworkAuthorization DefaultName ""

To set the current user's long name:

This is only necessary if you have made any of the changes listed above.

$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseDefaultName -bool NO
$ defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool NO

or

$ defaults delete /Library/Preferences/com.apple.NetworkAuthorization UseDefaultName
$ defaults delete /Library/Preferences/com.apple.NetworkAuthorization UseShortName

share|improve this answer

Run Safari, and enter something like the following into its address bar:

afp://username@serverdomain

(e.g. "afp://fred@lacalsrv3.local"). Don't hit return, just drag the shortcut icon at the beginning of the address bar to the desktop; this'll create a URL location file which you can open to start a connection with the specified username. If you'd like, you can put the file somewhere out of the way and put a shortcut to it in the Dock.

If you want the password to be automatic as well, it's actually even easier: connect once with the "Remember my password" checkbox selected, and it'll remember both the name and password for subsequent connection attempts.

share|improve this answer

Just a guess, but could you create the link to the server with username@servername somehow?

I'm not at a mac right now or I would try.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.