You are not logged in.

#1 2020-01-08 10:16:22

Waan
Member
Registered: 2019-12-25
Posts: 30

[Solved] Long username

32 characters seems to be the max for setting new username on Arch Linux.
Example # useradd -m 12345678901234567890123456789012

Is it possible that picking username that long, would cause any problems?

Last edited by Waan (2020-01-10 01:26:48)

Offline

#2 2020-01-08 10:41:59

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: [Solved] Long username

Waan wrote:

Is it possible that picking username that long, would cause any problems?

Yes- some user sockets are stored in the homedir, and these have max filepath length of 108 characters.

Example issue Flatpak: socket path too long if username is longer than 17 characters.


--
saint_abroad

Offline

#3 2020-01-08 11:38:34

Waan
Member
Registered: 2019-12-25
Posts: 30

Re: [Solved] Long username

sabroad wrote:
Waan wrote:

Is it possible that picking username that long, would cause any problems?

Yes- some user sockets are stored in the homedir, and these have max filepath length of 108 characters.

Example issue Flatpak: socket path too long if username is longer than 17 characters.

Then i wonder, why it is possible to set 32 characters username on Arch?
Is it worth reinstall of the entire system because i have 32 character usernames? Or should i simply # userdel
Not that i care much about security, but still, does having a long username that exceeds the maximum characters opens security holes?
Sorry for my newbie question.

Offline

#4 2020-01-08 11:59:28

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: [Solved] Long username

Waan wrote:

i wonder, why it is possible to set 32 characters username on Arch?

It's only the useradd utility that has a 32-character limit. Linux itself supports usernames up to 256 characters.

Waan wrote:

Is it worth reinstall of the entire system because i have 32 character usernames?

No- and certainly not if the potential issues don't affect you (eg. you don't use Virt-Manager Flatpak).

Waan wrote:

Not that i care much about security, but still, does having a long username that exceeds the maximum characters opens security holes?

Vulnerabilities for long usernames will happen whether you have long usernames or not. No reason to be concerned (unless you're interested in fixing things).


--
saint_abroad

Offline

#5 2020-01-08 12:30:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,405
Website

Re: [Solved] Long username

You'll need to ask upstream(s) why username limits exist and/or have been arbitrarily added to certain utilities. They are not added or set by Arch.

Waan wrote:

Is it worth reinstall of the entire system because i have 32 character usernames?

No. Why do you think reinstalling is even worth considering?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2020-01-08 21:23:04

Waan
Member
Registered: 2019-12-25
Posts: 30

Re: [Solved] Long username

Like they said on Gentoo Forums: "You only install Gentoo once"
I actually can not think of a reason to reinstall.

Offline

#7 2020-01-08 23:30:55

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: [Solved] Long username

Waan wrote:

I actually can not think of a reason to reinstall.

I actually can not think of a reason to have a 32 character user name. Is this a purely academic exercise?


"the wind-blown way, wanna win? don't play"

Offline

#8 2020-01-10 01:26:15

Waan
Member
Registered: 2019-12-25
Posts: 30

Re: [Solved] Long username

CarbonChauvinist wrote:

I actually can not think of a reason to have a 32 character user name. Is this a purely academic exercise?

No

Offline

Board footer

Powered by FluxBB