1833047 Members
2515 Online
110049 Solutions
New Discussion

Max length of login name

 
SOLVED
Go to solution
thewho?
Frequent Advisor

Max length of login name

Hello,
N4000,11.0
Is there any way to increase the maximum length of a login name? Currently our system is 8 and would like to increase it. We'd like to avoid cross reference tables between win2k and hp.
Thanks,
Luis
We'll get through this together.
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: Max length of login name

Hi Luis,

You can go larger...BUT the better approach is to shorten the NT account names to 8.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
PIYUSH D. PATEL
Honored Contributor

Re: Max length of login name

Hi,

The user login name's length is limited to 8-bytes. Look at /usr/include/utmp.h or the man pages for utmp(4).

found some information in /usr/include/limits.h

/*
* The size of the storage required for a login name, in bytes,
* including the terminating null.
*/
# define _POSIX_LOGIN_NAME_MAX 9

/*
* Maximum Length of a login name.
*/
# define LOGIN_NAME_MAX 64

So general 8 chars is the maximum but HP-UX will recognize up to 63 chars.

I suppose a general consensus here would be to stick to a maximum of 8 char for compatibility purpose between open systems...

Piyush

Jeff Schussele
Honored Contributor

Re: Max length of login name

Luis,

Here's a good thread dealing w/pros & cons of using longer names as well as refs to some TKB docs.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x70b8cf38d6bdd5118ff10090279cd0f9,00.html

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Tully
Honored Contributor
Solution

Re: Max length of login name

Hi,

Have a read of the KBRC00003778 TKB document. Please note the patch mentioned has been superceded by patch "PHCO_24838"



Anyone for a Mutiny ?