1752440 Members
5734 Online
108788 Solutions
New Discussion юеВ

login name length

 
SOLVED
Go to solution
j773303
Super Advisor

login name length

What's the login name maximum length in hpux 11.11 ? Below message are catch from limits.h,
is it possible reatchd 64 characters?



/user/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
Hero
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: login name length

Without using an LDAP server it pretty much ignores characters beyond 8 characters.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bhuvaneswari Selvaraj
Valued Contributor

Re: login name length

It is only 8...

man utmp will show that utmp is a structure as follows

struct utmp {
char ut_user[8]; /* User login name */

......
j773303
Super Advisor

Re: login name length

Does any knows the /usr/include/limits.h, why
LOGIN_NAME_MAX define to 64 ?



/* Maximum Length of a login name. */

# define LOGIN_NAME_MAX 64

Hero
Steven E. Protter
Exalted Contributor
Solution

Re: login name length

You might be able to hack that, but I don't think so.

If you suceed any problems with authentication will be blamed on these changes. There are ways with LDAP to get full longer login, say a login name like stevenprotter, but its not built into the base operating system.

If you suceeed in hacking your system to do longer logins, you will be non-standard, and people will have trouble helping you with your system.

If you like taking vacations, you might want to consider your options here and find another way. LDAP will do the trick.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com