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 ? tia Claus Derlien Frie Funktion?rer - faglig organisation og tv?rfaglig a-kasse - www.f-f.dk *************************************************************************************************************************************** Denne email og alle filer vedlagt som bilag kan indeholde fortroligt materiale, der kun er beregnet for adressaten, og maa ikke udleveres eller kopieres til uvedkommende. Har De ved en fejltagelse modtaget denne email, bedes De venligst omgaaende meddele os dette pr. telefon : 6313 8550. Paa forhaand tak. *************************************************************************************************************************************** This email and any files transmitted with it may contain confidential information intended for the addressee(s) only. The information is not to be surrendered or copied to unauthorised persons. If you have received this communication in error, please notify us immediately by telephone: +45 6313 8550. Thank you. ***************************************************************************************************************************************
On 01/02/06, Claus Derlien <CD at f-f.dk> 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 ? >Not that it helps you, but this works fine on CentOS 4. [root at willspc ~]# useradd TEST [root at willspc ~]# tail -1 /etc/passwd TEST:x:1074:1074::/home/TEST:/bin/bash [root at willspc ~]# You could just create the entries yourself in /etc/passwd and /etc/shadow. (Obviously after creating backups copies JIC.) Will.
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