LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-17-2007, 07:11 AM   #1
Sadus
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Question uppercase letters in user/group names


Hi,

We have some software which automatically sets up groups and users for people to simplify account management due to having a large number of servers. Out of about 1000 servers in our datacenters, 2 of them won't let us add groups or users that contain capital letters. They are both RedHat ES 3. We have lots of other CentOS 3 servers (based on RHES3) which do let us add users/groups with capital letters just fine. I'm pretty sure we even have other RHES3 servers which are ok but I'd have to check. This has not been a problem yet on any RHES4 or CentOS4 servers. These 2 problem servers are not using any sort of network logins, all just local accounts.

I realize we could manually add things all lowercase then edit the files in /etc manually to stick in the uppercase letters, but surely there is an easier way. We can't manually be doing that since our software adds new employees automatically etc.

I looked in /etc/login.defs but didn't see anything related to allowing uppercase letters. Where is the setting that controls this?


useradd: invalid user name 'TestUser123'

groupadd: TestGroup123 is a not a valid group name
 
Old 09-17-2007, 07:47 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
You could use adduser instead of useradd. It allows a --force-badname option.

Also, I'd make sure this isn't some kinda fixed bug by checking for updates to the shadow-utils package (or whichever package contains the useradd binary). This might be the reason why some of your RHES3 boxes do take uppercase. It's just a thought.

Last edited by win32sux; 09-17-2007 at 07:52 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change file names to uppercase in a directory konramesh Linux - General 4 06-16-2009 06:13 AM
user and group names from uid and gid PatrickNew Programming 3 06-02-2007 09:26 PM
e-mail to user name in capital letters y575 Linux - Networking 2 01-26-2007 01:49 AM
why cannot create user account with uppercase characters on redhat EL3 ? hector48 Red Hat 3 07-15-2005 04:04 PM
Help with a Script for Trimming last 2 letters of file names eagletech Linux - Newbie 3 11-13-2002 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration