Blanchard, Michael
2002-Feb-08 09:01 UTC
[Samba] Almost all working, except for "[: too many arguments" on samba login
I've fixed my WINS server problems (long story) got all my "wbinfo"'s working, along with creating home directories and everything, but now I have 1 problem and one question. 1. whenever a user logs in with a winbind user account, it says "[: too many arguments" This only started since I added a line in system.auth for the pam_mkhomedirs.so to make the directories. If I remove that line, I still get the error. Can I safely ignore it, or is it a symptom of a big problem? 2. I'm running redhat 7.2. Is there anway to avoide having to add winbind.so to all of the \etc\pam.d\* files? I thought there was a single file you could edit to change them all? Also, thanks to all the samba members! Now that I've got 2.2.3a working, I'm amazed at what open source can accomplish :)
Andrew Bartlett
2002-Feb-10 03:10 UTC
[Samba] Almost all working, except for "[: too many arguments" on samba login
"Blanchard, Michael" wrote:> > I've fixed my WINS server problems (long story) got all my "wbinfo"'s > working, along with creating home directories and everything, but now I > have 1 problem and one question. > > 1. whenever a user logs in with a winbind user account, it says "[: too > many arguments" This only started since I added a line in system.auth > for the pam_mkhomedirs.so to make the directories. If I remove that > line, I still get the error. Can I safely ignore it, or is it a symptom > of a big problem?It depends on what is in the dir that pam_mkhomdir was using for its skeleton, and some (possibly) dodgy shell scripting in there. Do your usernames have spaces?> 2. I'm running redhat 7.2. Is there anway to avoide having to add > winbind.so to all of the \etc\pam.d\* files? I thought there was a > single file you could edit to change them all?/etc/pam.d/system-auth Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net