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

  • LupusBlackfur@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    1 day ago

    Try: sudo pkill -KILL -u <username>

    In your case sudo pkill -KILL -u bazzite

    Then: sudo usermod -l ludrol bazzite