Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12937 - Arch does not accept usernames with periods

Attached to Project: Arch Linux
Opened by Kaiting Chen (Phoenixfire159) - Saturday, 24 January 2009, 19:53 GMT
Last edited by Aaron Griffin (phrakture) - Tuesday, 27 January 2009, 16:01 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Arch does not allow usernames with periods in them. (I'm not sure if this is a bug, but at least every other distribution allows this).

To reproduce,

useradd first.last
=> useradd: invalid user name 'first.last'

if we force it,

useradd -m -g users first_last
mv /home/first_last /home/first.last
sed -i -e 's:first_last:first.last:g' /etc/{passwd,shadow}

then `pwck -r` yields
=> invalid user name 'first.last'
This task depends upon

Closed by  Aaron Griffin (phrakture)
Tuesday, 27 January 2009, 16:01 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Working as upstream intended it
Comment by Gavin Bisesi (Daenyth) - Tuesday, 27 January 2009, 13:15 GMT
From the useradd manpage:

Usernames must begin with a lower case letter or an underscore, and only lower case letters, underscores, dashes, and dollar signs may follow. In regular expression terms: [a-z_][a-z0-9_-]*[$]

Loading...