HACKER Q&A
📣 nk1337

Why 'MacBook-Pro' in my terminal changed to 'Huawei'?


Hello. Recently I bought a new MacBook Pro 16 in Russia. This morning my terminal changed the prefix in front of each command:

"user@MacBook-Pro" to "user@HUAWEI_Mate_20-1a2d"

Does it mean that my MacBook is fake? Did the following: - Compared serial on macbook and "system information" on "checkcoverage.apple.com" - Good - Compared exact hardware config matching official resources - Compared that manufacturing date of my battery is less than manufacturing date of macbook (via coconutbattery)

Does anyone know any way to validate the mac or the cause of this weird change?


  👤 coldtea Accepted Answer ✓
>Does it mean that my MacBook is fake?

There's not really a market of fake MacBooks that someone can buy (outside of China and from a legit store, none the less), and think they're an Apple product. It's very hard to make a fake one to a quality that will convince anybody with any familiarity with the platform and leave enough room for profit (from materials to unibody construction, precision etc).

The @MacBook-Pro part is the name of the machine. Perhaps the name changed? Maybe you've set it to change through DHCP, whenever a new connection tries to assign one?


👤 mtmail
Maybe it's just the hostname. Try 'hostname' on the terminal and see if https://www.howtogeek.com/tips/how-to-change-your-computer-n... makes a difference.

👤 Hnrobert42
Just to rule things out, do you have a Huawei phone?

What version of Mac OS are you running?

What shell are you using? Bash or ZSH?

What terminal application are you using? Iterm2? The stock terminal app?


👤 2038AD
I would guess that the owner of the Huawei phone was spoofing their mac address