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?

link|improve this question

71% accept rate
feedback

3 Answers

up vote 5 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

link|improve this answer
feedback

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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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