Adduser with login starting with a number
I need to be able to create user accounts that start with numbers. I have tried to research finding different tags that might allow me to force the users account to be created. Can this be done?
|
You need to create bash script for it.
check http://www.indiangnu.org/index.php/archives/59 |
Bash script didnt work
I created the bash script exactly as you have it but I still can not add a user login like 3xy3y it keeps giving me an error.
# ./adduser 3xy3y - User names cannot begin with a number; please choose another Login name for new user []: Does anyone have any other ideas? |
Hi,
There is nothing any issue with adduser script. I had tested itself on diff type of OS. Please check it again with abc or xyz (do not start with numeric). After that use numeric start if it success. Do not copy or paste the given script from http://www.indianGNU.org. Just write it manually. [root@indianGNU.org ~]# ./adduser 3xy3y Changing password for user 3xy3y. passwd: all authentication tokens updated successfully. User 3xy3y's password changed! User 3xy3y will be forced to change password on next login! |
An account name can't start with a letter. That is an invalid account name.
Quote:
|
I done it in my RHEL 5. so accept it or try for more........
|
Sounds like a bug. I don't think it is allowed for posix compliance. There isn't a compelling reason to want to do it anyway.
|
Quote:
P.S. No amount of bash scripting will change that. You could try editing the user/group/password/shadow files manually but on your own head be it. |
All times are GMT -5. The time now is 03:15 PM. |