Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479788 - 11a section of Hanbook must provide linux user naming convention
Summary: 11a section of Hanbook must provide linux user naming convention
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-05 06:33 UTC by Sergey S. Starikoff
Modified: 2013-08-07 09:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey S. Starikoff 2013-08-05 06:33:56 UTC
Prior to example of adding ordinar user (a User for Daily Use) Hanbook must provide requirements to username's string.

Something like (excuse me my English):
Check is performed by utiliries from shadow package, but it doesn't sets these limitation, it just fixes current state.

User/group names must match [a-z_][a-z0-9_-]*[$]
User names are limited by whatever utmp can handle (USER_NAME_MAX_LENGTH)
man 5 utmp:
#define UT_NAMESIZE 32

Ideally it will be complete this section with refernce to official doc or at least article in official wiki, with more detailed description.
Why such limitation:
Why forbidden '-' as first symbol is rather clear. But why not number? Why forbidden uppercase letters (unlike FreeBSD)? Why forbidden dot? Why forbidden national alphabets letters?
Comment 1 nm (RETIRED) gentoo-dev 2013-08-07 08:58:15 UTC
getting into the hows and whys of *nix convention, and the details of particular system tools, is outside the scope of the handbook. really, if the user add tool rejects your username, it's pretty obvious to me that you just choose another one.
Comment 2 Sergey S. Starikoff 2013-08-07 09:41:30 UTC
I agree that describing how and why in Handbook is an overhead.

But short reverence about format of valid username (what symbols it could contain and how long it could be) are needed.
Because many (or even most) tried usernames may don't fit these requirements.