Benches macOS

13

Change afp/ftp/smb address name

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I'm a fairly new Mac user and I've been trying to change my MacBook Pro's computer name. I have been able to change the computer's name through System Preferences > Sharing and I have also changed the WINS NetBIOS name. BUT whenever I go to Sharing > File Sharing my address still shows my computer's original name which I'm trying to change. Whether it's afp ftp or smb it still displays that the computer can be accessed at the address afp://computername or smb or ftp with the same old computer name.

How do I change this? If I have to use terminal, please guide me as I've never done so. Thanks in advance for any help.

13 replies

Sign in or join Beachball Help to reply.

  1. 0

    donv_the_ghost

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Changing names is no fun at all. [See this read; it deals with just changing a short name|http://support.apple.com/kb/HT1428?viewlocale=en_US]. [Here is more|http://www.macworld.com/article/132693/2008/03/changeshortusername.html]. Looks like Apple would make these things easier since lots input names they don't really want to use during installs.

    Edit: I looked at what you said more carefully. You change what you want to at System Preferences > Sharing > Computer Name. Just do the edit indicated. Edit to the name you want to use for sharing.

    Message was edited by: donv (The Ghost)

  2. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for your help but this isn't exactly what I was looking for. I know how to change both the full name and short name and how to change my name for sharing. The problem is, my computer is STILL accessible for sharing using "afp://myoldcomputername" instead of "afp://mynewcomputername" I'm trying to change this specifically.

  3. 0

    donv_the_ghost

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    How did your computer get a new name? Did you reinstall and change the name?

  4. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Well, it's not that it got a new name. I've changed the name but I can't change the afp:// address. I was most surprised when I installed a new hard drive, re-installed Snow Leopard, and it STILL allowed afp/smb access using the name I originally gave it.

  5. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Also, when I open Terminal, it shows my old computer name, then my short user name. I'm ultimately trying to change my old computer

  6. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    run the following commands in terminal


    scutil --get ComputerName
    scutil --get LocalHostName

    what do you get? normally, you should get the same result. the first command gives the computer name set in sharing system preferences and the second the Bonjour name. if you are getting the wrong names there run the following commands

    (copy and paste please)


    sudo hostname your-new-host-name-here
    sudo scutil --set ComputerName $(hostname)
    sudo scutil --set LocalHostName $(hostname)
    sudo scutil --set HostName $(hostname)

    put the computer name you want in the first command. you'll have to enter your admin password (which you won't see) after the first command. That's normal. This ought to fix the problem.

  7. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    For the first two commands you told me to try I got the correct name, I also followed through with the commands you gave me. Still no change unfortunately.

  8. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    One more thing, I believe the issue is my HostName. When I tried your first two commands, it showed my new name, but I tried the same command but for HostName and it showed the old name. I also followed through with the other 3 commands and the HostName has not changed.

  9. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    something is very strange. the commands appear not be working at all. do you by chance have a blank admin password? sudo will fail silently in this case. make sure the password is not blank. also, restart the computer after running the commands.

  10. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Ok, so in total. I've been able to change the HostName. When I open Terminal, everything looks fine. Here's my problem:

    http://i36.tinypic.com/2ir53ih.gif

    Everything other than this is fine. My computer is STILL accessible using smb://myoldcomputername

  11. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    sorry, i don't know what else could be doing this.

  12. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for all your help thus far. I just wish I was more comfortable with Terminal then I'd try digging around to figure it out. Anyone else out there with any ideas?

  13. 0

    seemein3d

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Realized the issue had to do with the router rather than the computer. Thanks anyway.