[CentOS] usernames with capitals

Wed Feb 1 13:59:31 UTC 2006
Les Mikesell <lesmikesell at gmail.com>

On Wed, 2006-02-01 at 03:38, Claus Derlien wrote:
> Hi, im new to the list, so bear with me if this was discussed earlier!
> 
> For historical issues we need to maintain usernames in all capitals ie. CD
> 
> our test environment is running centos 3.4 - our live environment is on redhat 8.0
> 
> the useradd program won't allow me to create a new user with capitals, and
> usermod wont change a lower case user name to upper case!
> 
> What is my options now ? - do i have to hack the package or is there a known work around ?

If it is just for a set of existing users, I'd add them in
lowercase, then edit
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
and mv the /home/ directory to names you want (making sure
everything matches).

-- 
  Les Mikesell
   lesmikesell at gmail.com