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

  • deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 days ago

    An alternative, if you have console access, to doing that root password dance, is:

    1. Drop to rescue/emergency/single-user mode.
    2. Do your changes to the user account
    3. Drop back to multiuser mode.