FW: can not create groupnames or usernames with Upper and lowercharacters to-gether(Ex: XXXggg)

Stuart Sears stuart at sjsears.com
Tue Sep 5 08:40:21 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Padiyath Sreekumaran wrote:
>   Hello,
>    I forgot to mention that I also tried the following format
>    without success:
> 
>    groupadd -g 999888 gggXXX

as someone else already helpfully pointed out:
man groupadd
Groupnames 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_-]*[$]

>    I tried this on another system with RedHar 4.2 installation
>    and it works.

This restriction seems to have been lifted for RHEL4 (and hence FC5)
the old restrictions will still apply on RHEL3.
This you will not be able to change.

see if your version has this in its changelog (on RHEL4)...
rpm -qf --changelog /usr/sbin/groupadd|less
<quote>
* Wed Oct 13 2004 Adrian Havill <havill at redhat.com> 2:4.0.3-33
- - allow for mixed case and dots in usernames (#135401)
- - all man pages to UTF-8, not just Japanese (#133883)
- - add Polish blurb for useradd -n man page option (#82177)
</quote>

it seems that groupadd uses the same settings as useradd since sometime
in 2004 - it certainly does not restrict me on FC5 at all.
I can create groups which start with an upper|lowercase letter, or a
number and they just work.

Basically, it looks like you are not going to get this feature in RHEL3
ever. On the whole, major version numbers do not tend to change for
anything over the lifetime of a Red Hat release.

Regards

Stuart
- --
Stuart Sears RHCA RHCX
"Quit worrying about your health. It'll go away."
- - Robert Orben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFE/Tf0amPtx1brPQ4RAqCqAJ9i3rEBLIp/a3KYW9FfZVXX6nIoOgCfd+vE
QTrEkuklqQR9W4Q7xaq+xrU=
=V4dk
-----END PGP SIGNATURE-----




More information about the redhat-list mailing list