XY: I installed bazzite and goofed up. The username is wrong and my home is /home/bazzite instead of /home/ludrol

I am trying to run usermod -l ludrol bazzite in tty3 with sudo su - but the bazzite user is logged.

Solution:
Added password to root with passwd
Logged in as root
Ran required usermod commands
Disabled root with passwd -l

  • gnuhaut@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    13 days ago

    IDK if this will work but maybe doing exec sudo -i does the trick.

    Otherwise just enable the root account and log in as root. Should be passwd -u root to unlock (passwd -l root to relock), also need to set the root password using passwd root.