How to change the name of my iMAC 27 on OS/X 10.9.5?

Hello,


My iMac 27 was reinstalled by a pro, but he put his company name as the owner of my machine.


So, when I start a terminal, I've the following prompt: MacBook-Pro-de-Axiom:~ Philippe$


I would like to change that to: iMac27-de-BREGUSSAK:~ Philippe$


On a Linux system, this can be done when modifying the two files: /etc/hosts and /etc/hostname


On OS/ 10.9.5, what is (are) the file(s) to modify or the command to use to do it?


Thank you in advance for you help.


Kind regards.


Philippe

iMac, OS X Mavericks (10.9.5), null

Posted on Sep 25, 2018 6:08 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 27, 2018 7:25 AM

Hi FoxFifth,


After googeling a lot, I found the answer on the excellent french Mac Génération forum : https://forums.macg.co/threads/nom-de-machine-dans-le-terminal.1272517/


So the command to change the name of a machine with OS/X is : "sudo scutil --set HostName new-name" where "new-name" is the name of you machine.


Exemple : sudo scutil --set HostName iMac-de-Michel


Hope this helps.


Best regards.

6 replies
Question marked as Top-ranking reply

Sep 27, 2018 7:25 AM in response to FoxFifth

Hi FoxFifth,


After googeling a lot, I found the answer on the excellent french Mac Génération forum : https://forums.macg.co/threads/nom-de-machine-dans-le-terminal.1272517/


So the command to change the name of a machine with OS/X is : "sudo scutil --set HostName new-name" where "new-name" is the name of you machine.


Exemple : sudo scutil --set HostName iMac-de-Michel


Hope this helps.


Best regards.

Sep 25, 2018 7:02 PM in response to FoxFifth

Hi again FoxFifth,


This is what I get (sorry this is in French):


User uploaded file


So, should I click on the "Modify" button and change iMac 27 to the new name I need then close this dialog box?


User uploaded file


But this should only change the network name but not the first part of the prompt, am I wrong ?


Here is what I get in the Terminal:


User uploaded file


And I would like to change MacBook-Pro-de-Axiome by iMac-27-de-BREGUSSAK.


This information must be stored in one (or multiple) file(s). What are they with OS/X ? (They are in /etc/hosts and /etc/hostname on Linux).


Any idea ?


TIA

Philippe

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to change the name of my iMAC 27 on OS/X 10.9.5?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.