max length of loginname in solaris 10 ?

I saw somewhere loginname length range is 2-8

I tried one character loginname like 'a' or 'b' and it seems to work.

/usr/include/limits.h says:

#define LOGNAME_MAX 8 /* max # of characters in a login name */

what is minimum length restriction ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I think you need to test this with the useradd command.
Brian UtterbackPrinciple Software EngineerCommented:
One character login names are fine. From the passwd(4) man page:

The login (login)  and  role  (role)  fields
accept  a string of no more than eight bytes
consisting of characters  from  the  set  of
alphabetic  characters,  numeric characters,
period (.), underscore (_), and hyphen  (-).
The first character should be alphabetic and
the field should contain at least one  lower
case alphabetic character. A warning message
is displayed if these restrictions  are  not
met.  The login and role fields  must  contain  at
least  one  character and must not contain a
colon (:) or a newline (\n).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Note that you can have very long login names (I'm assuming 255 bytes), but only the first 8 bytes will be recognised, so if you had the users:


They would be treated as duplicate users.
Thats a good way  to explain the difference.
Plus easy to troubleshoot

I thinks you can have  -a- as a username , but business pointview,No one will want to have/create that way.
For personal server.yes its  good to have.

Company/firms usually do this way.

name :Javeed Abdul
Department no: 12
Employeee no:34

Userid  will be

Easy to track the user,where he from , what responsibility he has ....Lots more if you go in depth

Creating username is very flexible,and has restrictions and options
All depends on where you want to create, how you want to have.

hope this help
beer9Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.