On Thu, Sep 12, 2024 at 14:50:23 +0100, Joe wrote: > On Thu, 12 Sep 2024 08:35:25 -0500 > Richard Owlett <rowl...@access.net> wrote: > > Relevant man page to have 'root' edit a user's login name? > > > Looks like usermod, according to the first page Google shows for: > debian change user name
I prefer vipw(8). But that's just me. You'll also want to read passwd(5) and shadow(5). I would highly recommend *not* being logged in as the user whose name is being changed at the time. Do a direct root console or ssh login. Unless you have a second unprivileged account that can su/sudo to root to make the changes to the first account. You'll probably want to rename the home directory, so mv(1) applies. If the user has a crontab file, you may want to find that and rename it as well. If you're using /var/mail for user mailboxes, you may want to rename the user's mailbox file too. There may be other things I can't think of right now.