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@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@willspc ~]# useradd TEST [root@willspc ~]# tail -1 /etc/passwd TEST:x:1074:1074::/home/TEST:/bin/bash [root@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).
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).
You might choose to use vipw and vigr to edit the above files as well.
If you use local mail spools, you will need to rename /var/spool/mail/user to /var/spool/mail/USER
Barry
On Wed, 2006-02-01 at 08:45, Barry Brimer wrote:
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).
You might choose to use vipw and vigr to edit the above files as well.
If you use local mail spools, you will need to rename /var/spool/mail/user to /var/spool/mail/USER
That's actually a different problem and a good reason by itself not to ever use uppercase in a user login name. Mailers on unix-like systems usually want to lowercase the address. I've always avoided doing this myself so I'm not sure about the details or how to work around it.
On Wednesday 01 February 2006 12:06, Les Mikesell wrote:
On Wed, 2006-02-01 at 08:45, Barry Brimer wrote:
That's actually a different problem and a good reason by itself not to ever use uppercase in a user login name. Mailers on unix-like systems usually want to lowercase the address. I've always avoided doing this myself so I'm not sure about the details or how to work around it.
and I think you will end up with everything being translated to lower case if you login with an all uppercase name. The system assumes your terminal can't do lower case and helps you after you are logged in. This could cause real problems later....