@glitcher32 usermod -m -d /home/[new username] -l [new username] pi
Run as root (i.e. logged out of the pi user), that should do it all in one command π
You'll probably also need to change the sudoers file:
export EDITOR=nano && sudo -E visudo
(replace anywhere it says pi in that file with the new username)
@glitcher32 yeah so you're going to login as root (sudo su) first, then run those commands, which should theoretically change everything. Changing usernames isn't like, officially supported in Linux but most things are tied to the UID and the username is just for show so it should be fine.
@jonah After I run the first command (while logged into root) it goes through, but when I do that second command in and look in the file, there is nothing that says anything about "pi".
Do I have to log out of the root account then do it?