1

My MacBook Pro (running BigSur 11.2.1) now - since I rebooted it last night - keeps showing the host name as 'HUAWEI_Y6_2019-{hhhhhhhhhh}' in the bash prompt. (The hh's are a 10-digit hex string.)

The hostname command likewise reports this value.

In System Preferences > Sharing, Computer Name still shows as 'macbook' (which is what the prompt used to say). I've tried editing that, then editing it back, and that fixed the prompt for new bash sessions - for a while. Now it has started doing it again.

These are not remote bash sessions just bash shells on the local machine.

Does anyone have any idea why this might be happening? Or where the value is coming from?

As far as I'm aware there's no Huawei hardware on my home network (unless the 'BT' badged hub is really a Huawei box).

UPDATE: I have reviewed OS X computer name not matching what shows on terminal but that seems to refer to a remote bash session. That is not the case here.

Paul
  • 111
  • The referred answer does not refer to a remote session. It is on terminal. iPhone is the name that matches your HUAWEI_Y6_2019-{hhhhhhhhhh} it comes from the router – mmmmmm Aug 10 '22 at 16:54
  • Interestingly, when I search for HUAWEI_Y6_2019 it turns out they make an android phone "Y6" from 2019. – Marcel Wilson Aug 10 '22 at 20:05
  • 2
    Have you tried scutil --set HostName name_of_your_mbp? if so, does it still reset after a while? – Marcel Wilson Aug 10 '22 at 20:09
  • sudo scutil -set HostName <name> seems to have 'fixed' the problem, in the sense that the host name is now what it is supposed to be. Still don't know why it is happening - and why now, in particular. Still wait to see if it sticks or resets. Did confirm that the 'BT' badged hub is actually Huawei hardware. – Paul Aug 10 '22 at 22:32
  • @MarcelWilson We do have one Huawei phone in the house. I'm not sure it has ever been signed in to the WiFi. It may well be from 2019. – Paul Aug 10 '22 at 22:38
  • @paul It's hard not to want to put on a tinfoil hat right now. I don't want to be an alarmist either, but I'm almost wondering if this isn't something worth reporting to a government agency of some sort. (given the circumstances and this particular companies ties) – Marcel Wilson Aug 11 '22 at 14:42
  • @MarcelWilson You need to actually read the article you were linked. – Marc Wilson Aug 11 '22 at 20:02

0 Answers0