Weblog entry #28 for Utumno
I would like to change the 'NAME_REGEX' variable so that usernames like 'name.lastname' ( with a dot ) are possible.
Question: is there any issue with having a dot in usernames? If yes, what? If not, why is NAME_REGEX so restrictive in Debian?
Comments on this Entry
[ Parent | Reply to this comment ]
The question was: is there any issue with having a dot in a username?
[ Parent | Reply to this comment ]
[ Send Message | View Utumno's Scratchpad | View Weblogs ]
that was me :)
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Names or initials are not going to be unique except in a tiny system, so you expect collisions, firstname.lastname is only marginally better but people think it solves the problem which it does not. It's probably creating a false sense of security.
--
"It's Not Magic, It's Work"
Adam
[ Parent | Reply to this comment ]
[ Send Message | View Utumno's Scratchpad | View Weblogs ]
Well, it is a tiny system ( 4 users ) and I know all of them by name.
I guess I should have just asked 'can one have a dot in a usename'. Now the discussion has sidetracked.
[ Parent | Reply to this comment ]
Older versions of chown used the dot as the user/group separator, newer ones use colon so that you can have a dot as a user name separator.
--
"It's Not Magic, It's Work"
Adam
[ Parent | Reply to this comment ]
`chown user.group file' now has its traditional meaning even when conforming to POSIX 1003.1-2001, so long as no user has a name containing `.' that happens to equal `user.group'.
[ Parent | Reply to this comment ]
chown user:group file
Problem solved?
[ Parent | Reply to this comment ]
I was at a place, where the most restrictive names won, and every got a very cryptic code issued, because it was acceptable to every other system.
Also no one wins any prizes for weakening the restriction, and then having all thr Debian boxes compromised because "X" assumed usernames met the old NAME_REGEX.
Most internal stuff on Linux/Unix is based on UID, so I can't see why you can't have pretty much anything, although some utilities I know check for a username of "root", so probably best to leave the root users name alone.
[ Parent | Reply to this comment ]
Perhaps you just kill the dot in your usernames?
[ Parent | Reply to this comment ]
So go ahead :)
[ Parent | Reply to this comment ]