Code: Select all
]]=NAME-RESOLVE-ORDER]=HOST]=IP]]=HOST]=LEVEL]=<c|x>IXFqgbNan]=DIR]=STRING]=BYTES]=PORT]]]=DEBUGLEVEL]=CONFIGFILE]=LOGFILEBASE]]=SOCKETOPTIONS]=NETBIOSNAME]=WORKGROUP]=SCOPE]=USERNAME]]]=FILE]=on|off|required]]]]
Then same script is called from web interface (test.cgi). Now everything goes smoothly, shares listed and mounted. Same script gives the output:
Code: Select all
Usage: smbclient [-?EgBVNkPeC] [-?|--help] [--usage]
[-R|--name-resolve=NAME-RESOLVE-ORDER] [-M|--message=HOST]
[-I|--ip-address=IP] [-E|--stderr] [-L|--list=HOST]
[-m|--max-protocol=LEVEL] [-T|--tar=<c|x>IXFqgbNan]
[-D|--directory=DIR] [-c|--command=STRING] [-b|--send-buffer=BYTES]
[-p|--port=PORT] [-g|--grepable] [-B|--browse]
[-d|--debuglevel=DEBUGLEVEL] [-s|--configfile=CONFIGFILE]
[-l|--log-basename=LOGFILEBASE] [-V|--version]
[-O|--socket-options=SOCKETOPTIONS] [-n|--netbiosname=NETBIOSNAME]
[-W|--workgroup=WORKGROUP] [-i|--scope=SCOPE] [-U|--user=USERNAME]
[-N|--no-pass] [-k|--kerberos] [-A|--authentication-file=FILE]
[-S|--signing=on|off|required] [-P|--machine-pass] [-e|--encrypt]
[-C|--use-ccache] service <password>
The general question: why same binary/script gives so different output in two different ways it was being started?
From shell - weird characters
From cgi script - normal, like it should be.
I suspect some environment variables, no idea where to check. Like shell output is filtered or so. ARS_module is unloaded, by the way.
With nfs mounts -same problem - showmounts doesn`t return correct values if started from rcSGO, but works well if started manually via web interface.