3004-694 Error adding
Met an error when I tried to make a group in AIX like this:
# mkgroup -A id='54324' adms='root' backupdba
3004-694 Error adding "backupdba" : Name is too long.
It seems that the length of group name is too long to be made. Let's check current length limit.
# lsattr -El sys0 -a max_logname
max_logname 9 Maximum login name length at boot time True
Which means, the maximum length of user and group is 9 - 1 = 8.
To accommodate at most 16 characters, we raise the limit to the value of 16 + 1 = 17.
# chdev -l sys0 -a max_logname=17
sys0 changed
The static change will take effect at next reboot.
# shutdown -r now
Then we check the result.
# lsattr -El sys0 -a max_logname
max_logname 17 Maximum login name length at boot time True
# getconf LOGIN_NAME_MAX
17
Now, back to our job.
# mkgroup -A id='54324' adms='root' backupdba
No complaint.