On 09/12/2024 09:14 AM, Greg Wooledge wrote:
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.

I don't think a "newbie" should be referred to vipw(8) as
[ https://manpages.debian.org/bookworm/passwd/vipw.8.en.html ]
does *NOT* contain caveats/warnings equivalent to those in
[ https://manpages.debian.org/bookworm/passwd/usermod.8.en.html ]

I.E. I will follow reasoning of to...@tuxteam.de .


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.



Reply via email to