{"id":371,"date":"2011-01-31T11:25:16","date_gmt":"2011-01-31T11:25:16","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=371"},"modified":"2011-01-31T11:26:50","modified_gmt":"2011-01-31T11:26:50","slug":"changing-the-default-user-name-for-afp-connections","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=371","title":{"rendered":"Changing the Default User Name for AFP Connections"},"content":{"rendered":"<p>When you use the Connect to Server command in the Finder to connect to an AFP server, the login panel populates your full user name by default. In Mac OS X version10.5 and later, you can customize this panel to present your short name, a custom name, or no user name at all.<\/p>\n<p>IMPORTANT: These instructions involve using the defaults command to edit a property list (.plist) file and are intended for experienced Mac OS X administrators. Incorrect editing of this file can lead to unexpected Mac OS X behavior. Before following these instructions, make a backup copy of the \/Library\/Preferences\/com.apple.NetworkAuthorization.plist file.<\/p>\n<p>You can edit this file so that the Name field in the Connect to Server dialog is populated with one of the following:<\/p>\n<p>Current user&#8217;s long name (default behavior)<\/p>\n<p>Current user&#8217;s short name<\/p>\n<p>A custom name<\/p>\n<p>No name<\/p>\n<p>NOTE: If you select the &#8220;Remember password in keychain&#8221; option in the Connect to Server dialog, the name stored in the Keychain entry overrides the setting in this preference file.<\/p>\n<p>Use the defaults command in Terminal to change the default name to the following:<\/p>\n<h4><span style=\"font-weight: normal;\">To set the current user&#8217;s short name:<\/span><\/h4>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization UseDefaultName -bool NO<\/p>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization UseShortName -bool YES<\/p>\n<h4>To set a custom name:<\/h4>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization UseDefaultName -bool YES<\/p>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization DefaultName &#8220;user&#8221;<\/p>\n<p>Replace &#8220;user&#8221; with the desired custom name and enclose it in quotation marks.<\/p>\n<h4>To set no name:<\/h4>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization UseDefaultName -bool YES<\/p>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization DefaultName &#8220;&#8221;<\/p>\n<h4>To set the current user&#8217;s long name (Default):<\/h4>\n<p>This is only necessary if you have made any of the changes listed above.<\/p>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization UseDefaultName -bool NO<\/p>\n<p>$ defaults write \/Library\/Preferences\/com.apple.NetworkAuthorization UseShortName -bool NO<\/p>\n<p>or<\/p>\n<p>$ defaults delete \/Library\/Preferences\/com.apple.NetworkAuthorization UseDefaultName<\/p>\n<p>$ defaults delete \/Library\/Preferences\/com.apple.NetworkAuthorization UseShortName<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you use the Connect to Server command in the Finder to connect to an AFP server, the login panel populates your [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}