How to change the AIX login limit

Sometimes, you wish your AIX login would be longer... How I understand that... NOT.

Anyway, here is the solution, courtesy of the UNIX blog (see below for link):

# useradd itssomeguys
3004-694 Error adding "itssomeguys" : Name is too long.

# getconf LOGIN_NAME_MAX
# lsattr −El sys0 −a max_logname
max_logname 9 Maximum login name length at boot time True
# chdev −l sys0 −a max_logname=18
sys0 changed
# reboot

Nice, no?

See Also: