KB Article #179231

xfbadmgrp modify command is not taking enough characters for "Enter User's List" parameter

Problem

xfbadmgrp modify command is not up to take all characters for "Enter User's List" parameter



Its accepting only 256 characters.



In linux, there is no issue even more than 258 characters, but with Solaris it is restricting to 256 characters.



Resolution

It is a Solaris well-known issue.


The xfbadmgrp program works as intended, but Solaris has a kernel limitation of 256 chars.


The file limits.h on Solaris has this : #define MAX_CANON 256 /* max bytes in line for canonical processing */

(available through "getconf -a|grep MAX_CANON" too)


Workaound:

Instead of doing it as below:


cft@sun35:runtime>xfbadmgrp print -G Test
Group : Test
Passwd : $1$hxeAOBsG$vYsPINORfxnkl7Fscj/tZ0
GID : 102
Users : user39,user40
cft@sun35:runtime>xfbadmgrp modify
Group :Test
Password :
Group ID :102



Enter users'list ( RETURN -> keep users )
Users :user1,user2,user3,user4,user5,user6,user7,user8,user9,user10,user11,user12,user13,user14,user15,user16,user17,user18,user19,user20,user21,user22,user23,user24,user25,us
er26,user27,user28,user29,user30,user31,user32,user33,user34,user35,user36,user37,user38,user39,user40
cft@sun35:runtime>xfbadmgrp print -G Test
Group : Test
Passwd : $1$FyeAO8tG$3iBkkgOIYedM2p/LGuKAJ0
GID : 102
Users : user39,user40



Which will not accept more than 256 characters, the user must do this :


cft@sun35:runtime>xfbadmgrp modify -G Test -p Test -g 102 -u user1,user2,user3,user4,user5,user6,user7,user8,user9,user10,user11,user12,user13,user14,user15,user16,user17,user18,
user19,user20,user21,user22,user23,user24,user25,user26,user27,user28,user29,user30,user31,user32,user33,user34,user35,user36,user37,user38,user39,user40
cft@sun35:runtime>xfbadmgrp print -G Test
Group : Test
Passwd : $1$DzeAOIuG$S9JpAfZHl9JizYscr3HTJ.
GID : 102
Users : user1,user2,user3,user4,user5,user6,user7,user8,user9,user10,user11,user12,user13,user14,user15,user16,user17,user18,user19,user20,user21,user22,user23,user24,user25,use
r26,user27,user28,user29,user30,user31,user32,user33,user34,user35,user36,user37,user38,user39,user40



And we can have that way more than 256 characters.