System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

create username begin numbers

Fernando Jose P de Souz
Regular Advisor

create username begin numbers

Hi,

I would like create user (000273) beginning numbers.

O.S.: HP-UX 11.23


The information entered in the "Login Name:" field is not valid. After exiting this message, press Help On Context (Ctrl-F) for more
information about the field's requirements.


Wait.

7 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: create username begin numbers

Hi:

The login name must begin with an alpha character. See the manpages for 'passwd(4)'.

Regards!

...JRF...
Luk Vandenbussche
Honored Contributor

Re: create username begin numbers

You can try to modify it manually, after creating the uid, in /etc/passwd

But is it strongly advised not to do this.

Follow the requirement of HPUX and starts with another character
Fernando Jose P de Souz
Regular Advisor

Re: create username begin numbers

ok, Luk Vandenbussche

but i create a SAM restrict for a one user, and the user don't have permission the root, and this user can't modify the /etc/passwd.

James R. Ferguson
Acclaimed Contributor

Re: create username begin numbers

Hi:

Why do you insist on violating a documented requirement? You're on your own if you do.

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: create username begin numbers

The help page says very clearly:

user names "...Must begin with an alphabetic character".

Your workaround:

Count hex and the user name "a00001" begins with a number ;-)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
A. Clay Stephenson
Acclaimed Contributor

Re: create username begin numbers

As you have already learned, this dog ain't gonna hunt but perhaps you would like to know why. There are many UNIX commands which allow either a login or a UID to be used interchangably (e.g. chown, chmod) but if the requirement of a leading alphabetic were dropped, chmod, for example, could not tell if you meant login 123 or UID 123.
If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: create username begin numbers

This is now implemented on 11.31:
http://docs.hp.com/en/5992-4174/ch10s10.html