The samba init scripts for RedHat-9 and RHEL can cause a shell invalid syntax error if the /etc/sysconfig/network configuration file fails to set the NETWORKING shell variable. When this happens, the script will print this output:
/etc/init.d/smb: line 32: [: =: unary operator expected
Fundamentally, this is a misconfiguration of the OS configuration file /etc/sysconfig/network, but the fix is a trivial shell quoting fix. I will attach a patch for RedHat-9 and one for RHEL.
To reproduce, edit /etc/sysconfig/network and remove or misspell the NETWORKING variable, then try to run /etc/init.d/smb start.
Created attachment 2241 [details]
Patch for smb.init on RedHat-9
Created attachment 2242 [details]
Patch for smb.init on RHEL