R
R
Ruslan Ivanov2022-01-16 19:59:01
macOS
Ruslan Ivanov, 2022-01-16 19:59:01

How to change username in terminal?

In general, I bought a used macbook, according to the instructions on the apple website, I reset the settings through "System Settings" - "Erase content and settings" and when the terminal starts, it gives out: [email protected] ~ %, where Marina is the name of the former mac user. How to fix it?
In the settings for the name of the laptop, there is the name of the poppy with my name, as indicated when setting up after the reset.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kuznetsov, 2022-01-17
@sxivanov

sudo scutil --set HostName mac
It's enough. There is definitely no need to reinstall the system because of such a trifle))
After restarting the terminal, we get[email protected] ~ %

D
Drno, 2022-01-16
@Drno

Boot into recovery mode and rebuild the system from scratch
Either create a second user and delete this one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question