Why can't I tell the username of a user starting with a digit ?

vitexeon

Dabbler
Joined
Sep 25, 2023
Messages
11
Why can't I tell the username of a user starting with a digit ? In previous releases, I calmly created them and thanks to the numbers at the beginning of the login, they are segmented by region
 

ABain

Bug Conductor
iXsystems
Joined
Aug 18, 2023
Messages
172
When you say previous versions are you referring to earlier SCALE releases or CORE? Linux does not support usernames starting with numerical digits, so as far as I am aware this is what we expect on SCALE.
 

vitexeon

Dabbler
Joined
Sep 25, 2023
Messages
11
Earlier SCALE. before TrueNAS-SCALE-22.1, everything worked and it was easy to create users starting with a digit, in subsequent releases it stopped (and I started creating such users since release 21 and there are quite a lot of them) why it was necessary to prohibit creating users starting with a digit is not clear.... now we have to use UGLY CRUTCHES like _8456-office
 

vitexeon

Dabbler
Joined
Sep 25, 2023
Messages
11
an error is issued

error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/main.py", line 201, in call_method result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1341, in _call return await methodobj(*prepared_call.args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 169, in create return await self.middleware._call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1341, in _call return await methodobj(*prepared_call.args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 194, in nf rv = await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 176, in nf args, kwargs = clean_and_validate_args(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 170, in clean_and_validate_args verrors.check() File "/usr/lib/python3/dist-packages/middlewared/service_exception.py", line 70, in check raise self middlewared.service_exception.ValidationErrors: [EINVAL] username: Username must start with a letter or an underscore
 

vitexeon

Dabbler
Joined
Sep 25, 2023
Messages
11
At the same time, the error window itself says - VALIDATION
[EINVAL] username: Username must start with a letter or an underscore

but not a word about the NUMBERS that it is now forbidden to create a user from them... when is the first digit
 

vitexeon

Dabbler
Joined
Sep 25, 2023
Messages
11
Can you make a request for a Bug Report on this issue ? (I don't have access to this section because I'm new)
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222

vitexeon

Dabbler
Joined
Sep 25, 2023
Messages
11
And why did it not work like that for 2 years (I mean linux) and allowed on releases 21-22-23.1 scale to create users starting with a digit (and this is VERY convenient for dividing by regions or, say, zones) and now I have more than 100 such users, but 101st already in 23.3 I can't create...
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
No idea, but I believed to be common sense to have users start by letter? Genuinely curious.
I gave you the link to make a bug report, let us know if you get an answer.
 
Top