Results 1 to 3 of 3
Hi all,
Newbie question here. I recently installed redhat9 and have noticed that I cannot create usernames that contain uppercase letters.
So for example I can create tempuser but not ...
- 11-21-2006 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 4
Usernames containing uppercase letters on Redhat9
Hi all,
Newbie question here. I recently installed redhat9 and have noticed that I cannot create usernames that contain uppercase letters.
So for example I can create tempuser but not TEMPUSER. I could however create such usernames on my older redhat 6.2 machine - which did indeed have usernames in all uppercase. The redhat9 machine is replacing the 6.2 one.
Is there a workaround ? I tried usermod and manually editing the etc/passwd file.
Any other ideas ?
Cheers,
- 11-21-2006 #2
Try useradd; here is the man page for it: http://www.die.net/doc/linux/man/man8/useradd.8.html
I usually add users with the following:This will create the user bryan. After that, doCode:useradd -m -G [the groups you want] -s /bin/bash -c Bryan bryan
to give them a password.Code:passwd bryan
BryanLooking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
- 11-28-2006 #3Just Joined!
- Join Date
- Nov 2006
- Posts
- 4
Creating usernames in uppercase
So, I figured this out and just wanted to let everyone know how/what I did.
What I wanted to do was create usernames in all capitals - like TEMPUSER.
adduser/useradd does not allow me to do that - it complains since the username contains all uppercase characters. They just let me create 'tempuser'. Which I did.
Here's how I fixed it:
I made /etc/shadow and /etc/gshadow writable by owner. Then in all 4 of the following files:
/etc/passwd
/etc/group
/etc/shadow
/etc/gshadow
I went in and manually changed every entry for tempuser to TEMPUSER. This includes the group entries as well (although I suspect I don't need to change the group entries for the username).
Once this was done I removed the write flag on shadow and gshadow and I was done.
I now have user TEMPUSER on the system acting like any other normally created user.
Regards,
Arjun


Reply With Quote
