Mark Cooke
2002-Feb-11 02:25 UTC
Fwd: [Samba] Almost all working, except for "[: too many arguments" on samba login
> >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?We had the same problem here, ON RH, its to do with your /etc/profile and it not liking spaces in the users & groups (this might not be youre problem, but this was ours). Anyway Ive edited the folowing in my /etc/profile: basically its the addition of the backticks on the if line.. if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 14 ]; then umask 002 else umask 022 fi Hope that helps Mark ----- ---------- Mark Cooke Internet Operations Technician MM Group Ltd Tel: 8141 (Internal) Tel: (0117) 9168141 (External) Email: mark@mmebs.co.uk http://www.mmgroup.co.uk
Andrew Bartlett
2002-Feb-11 03:40 UTC
Fwd: [Samba] Almost all working, except for "[: too manyarguments" on samba login
Mark Cooke wrote:> > > > >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? > > We had the same problem here, ON RH, its to do with your /etc/profile and > it not liking spaces in the users & groups (this might not be youre > problem, but this was ours). > > Anyway Ive edited the folowing in my /etc/profile: > basically its the addition of the backticks on the if line..I assume you mean the addition of the quotes, the backticks should have been there before...> if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 14 ]; then > umask 002 > else > umask 022 > fi >-- 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
Justin Piszcz
2002-Feb-12 04:45 UTC
Fwd: [Samba] Almost all working, except for "[: too manyarguments" on samba login
This still does not help, does anyone have this working (reconnect at login) with Samba? Andrew Bartlett wrote:> Mark Cooke wrote: > > > > > > > >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? > > > > We had the same problem here, ON RH, its to do with your /etc/profile and > > it not liking spaces in the users & groups (this might not be youre > > problem, but this was ours). > > > > Anyway Ive edited the folowing in my /etc/profile: > > basically its the addition of the backticks on the if line.. > > I assume you mean the addition of the quotes, the backticks should have > been there before... > > > if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 14 ]; then > > umask 002 > > else > > umask 022 > > fi > > > -- > 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 > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba