Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How Do I Change My Username in Linux?

28 views
Skip to first unread message

Lynn Nicks

unread,
Apr 22, 2021, 7:36:58 PM4/22/21
to







--
Lynn Nicks

Knoedel

unread,
May 16, 2021, 6:31:00 AM5/16/21
to Lynn Nicks
Fuck off noob

Am 23.04.2021 um 01:36 schrieb Lynn Nicks:
> --
> Lynn Nicks
>

Bit Twister

unread,
May 16, 2021, 7:39:20 AM5/16/21
to
On Thu, 22 Apr 2021 23:36:57 -0000 (UTC), Lynn Nicks wrote:

I suggest you need to bookmark this url
https://www.google.com/advanced_search

Putting How Do I Change My Username in Linux
in the first box gets me
About 451,000,000 results (0.61 seconds)

When you post you may get better or more detailed replies if you always
post information about your setup.

I can recommend creating a signature file with basic information.
You seem to be using Sven 2.0 r2. I never used it so I can not
help you in setting it to use a signature file.
Signature files need to start with dash dash space

Example ~/.signature follows. I removed trailing space after -- for
this reply.

cat $HOME/.signature
--
Running Mageia release 7 (Official) for x86_64 using
Kernel 5.5.15-desktop-3.mga7 on x86_64 DM=lightdm DE=xfce

DM is Display Manager and DE is Display Environment,

Stéphane CARPENTIER

unread,
May 16, 2021, 10:35:26 AM5/16/21
to
Le 16-05-2021, Bit Twister <BitTw...@mouse-potato.com> a écrit :
> On Thu, 22 Apr 2021 23:36:57 -0000 (UTC), Lynn Nicks wrote:
>
> I suggest you

I'm surprised by your answer. He's on read only mode. He only has an
issue with the content of his message where he should have put an url
without any interesting information.

I'm pretty sur you lost your time giving him a detailed answer.

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io

William Unruh

unread,
May 16, 2021, 10:42:41 AM5/16/21
to
On 2021-04-22, Lynn Nicks <lynn....@linux.com> wrote:

edit /etc/passwd and change your username there. Edit /etc/shadow and
change your username there. That is it. Both have to be done by user root.
If you change it to an already existing name, only the first instance
will be used, You do not say why you want to change your username. It
seems silly. And there is a good probability that this is not what you
actually want to do.
>
>
>
>
>
>
>
> --
> Lynn Nicks

Carlos E.R.

unread,
May 16, 2021, 4:12:06 PM5/16/21
to
On 16/05/2021 16.42, William Unruh wrote:
> On 2021-04-22, Lynn Nicks <lynn....@linux.com> wrote:
>
> edit /etc/passwd and change your username there. Edit /etc/shadow and

He is a spammer, ignore his posts.

He is nonstop sending useless posts on alt.linux with links supposedly
on Linux howtos (same site always), and never answers questions.

I have him blocked, so I can not see his question. Must likely he posted
a howto on how to change the username and forgot to post the link.


--
Cheers, Carlos.

Bit Twister

unread,
May 16, 2021, 5:27:14 PM5/16/21
to
On Sun, 16 May 2021 14:42:39 -0000 (UTC), William Unruh wrote:
> On 2021-04-22, Lynn Nicks <lynn....@linux.com> wrote:
>
> edit /etc/passwd and change your username there. Edit /etc/shadow and
> change your username there.

I do not care if the answer is A valid answer to the question and is
more work than using the proper command to make the change.

For any lurkers:
It is poor advice and is woefully incomplete _IF_ user expects the
change to look/work like it was done correctly in the first place.

It can also causes the user problems when using tools to search for files
in their account. Example "locate $USER" or "locate $LOGNAME" depending
on distribution.

It is much better to use the proper tools to make the desired changes
than editing indicated files.

Possible commands of interest when scripting or manually making changes:

useradd, groupadd, passwd, userdel, groupdel, groupmod, gpasswd,
usermod, vigr, vipw, chage, chfn

example usage.
usermod --login new-name old-name
usermod --move-home --home /newhome/username username
usermod --login login_name --home /accounts/NEW CURRENT
groupmod --new-name NEW_group old_group

Richard Kettlewell

unread,
May 17, 2021, 3:16:43 AM5/17/21
to
William Unruh <un...@invalid.ca> writes:
> edit /etc/passwd and change your username there. Edit /etc/shadow and
> change your username there. That is it.

Cronjobs, at jobs and mail are all tracked by username; you would need
to adjust those. Probably other things too.

--
https://www.greenend.org.uk/rjk/
0 new messages