FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
you could try the --force-badname option. that sometimes works with one of those commands (adduser or useradd), can't remember which.
>edit - it's the adduser command, info adduser:
Code:
--force-badname
By default, user and group names are required to consist of a
lowercase letter followed by zero or more lowercase letters or
numbers. Dashes in the username are accepted as well. This
option forces adduser and addgroup to be more lenient.
Last edited by synaptical; 02-06-2004 at 09:28 PM.
Yeah, was importing about 700 users from an old RH 8 box to the Fedora system. Tested a few accounts out to make sure they didn't screw up something with useradd. Since I'm migrating from RH 8 to Fedora, I wasn't sure when RH introduced this "feature". I ended up not fighting it and creating a new script to lowercase all the imported users and their repective home directories. I put a note on my website to tell all the users to login with all lowercase. I actually prefer that, but I had already allowed mixed case usernames. Really sux.
Seems silly -- if you like the command to automatically create the home directory, and other things, then you will have to remember to manually change anything after as needed. I can see why it might not like special characters, but why capitals?
I can't think why certain distros would deliberately limit useradd in that fashion.
So for now, I will (unfortunately) user all lowercase, and hopefully will remember when I login (I've gotten used to this name on Win-doze).
When I first installed Fedora, I merrily created myself a username starting with a capital V. Turns out that procmail - which sendmail uses by default in FC - can't handle uppercase letters without a special hack, which I never have figured out. Ever since, all internal system mail addressed to Vince bounces to root, with the procmail error: user Vince unknown. That's the only reason that I'm aware of for all-lowercase usernames.
Yes, AFAIK. I've never been motivated enough to try an alternate MTA - my system mail is very low-volume - maybe Postfix (sic?) or others have no such problems. There may be other reasons to avoid uppercase letters in usernames that I'm not aware of - such as what the OP discovered.
I just used useradd to add a user JasonTaylor on my system. There was no apparent difficulty. I checked in the file /etc/passwd to make sure the capitals were preserved. I'm not aware of any rule against having user names with capital letters (except it's in poor taste).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.