Question:
Customer is using sesudo on a shell script created by their support team. Sesudo receives some large parameters and when we tried to execute the command, the following error appeared:
"sesudo: Parameter is too long."
Is it possible to increase the parameter length that sesudo accepts?
Answer:
sesudo has a limit of 255 characters on its command line, and it is not configurable. Looking at their script, a good workaround would be a wrapper script - an intermediate script containing the parameters (${ARGXSU[1]} ${ARGXSU[2]} ${ARGXSU[3]} ${ARGXSU[4]} ${ARGXSU[5]} ${ARGXSU[6]} ${ARGXSU[7]} ${ARGXSU[8]} ${ARGXSU[9]}) that would be called by sesudo, making it a shorter command line without losing functionality.