Can't change computer name, local hostname, etc.
High Sierra, mid-2013 MacBook Air 11 inch
So, I've had this problem since I got this computer (second hand): I can't update/change the computer name, hostname, netbios name (not that I care about this one), etc. Regardless of which method I use, within a second or so, it reverts back to the previous name.
Example: in the Sharing section of System Preferences, I update the Computer Name from fubaz to fubar. I can literally watch the Computer Name update, 1 second pause, then immediately revert back fubaz.
I've tried via the GUI:
System Preferences -> Sharing -> Computer Name -> Edit
I've tried via command line:
sudo scutil --set ComputerName fubar
sudo scutil --set HostName fubar
sudo scutil --set LocalHostName fubar
I've flushed the DNS cache, rebooted, repaired permissions, made sure the name is less than 15 characters, performed all necessary macOS updates (this issues has followed through multiple OS updates), etc.
I would watch the logs as I'm trying this, to get more info, but I'm not sure which log I should be looking at.
Has anyone run into this before?
Thanks,
Sarah