Re: [Samba] Samba and Win98

This is a discussion on Re: [Samba] Samba and Win98 within the Samba forums, part of the Networking and Network Related category; Am Donnerstag, 8. Mai 2008 schrieb sgmayo@mail.bloomfield.k12.mo.us: >=20 > G=FCnter Kukkukk wrote: > &...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-08-2008
Günter Kukkukk
 
Posts: n/a
Default Re: [Samba] Samba and Win98

Am Donnerstag, 8. Mai 2008 schrieb sgmayo@mail.bloomfield.k12.mo.us:
>=20
> G=FCnter Kukkukk wrote:
> > Am Donnerstag, 8. Mai 2008 schrieb sgmayo@mail.bloomfield.k12.mo.us:
> >> G=FCnter Kukkukk wrote:
> >> > Am Mittwoch, 7. Mai 2008 schrieb sgmayo@mail.bloomfield.k12.mo.us:
> >> >> I have a friend that had a samba server go down. They switched to
> >> another
> >> >> server and are having problems with people logging into it from
> >> Windows
> >> 98. If the same user logs in from WinXp then everything works
> >> otherwise
> >> >> they get an error. He also said that the smb.conf files were the
> >> same on
> >> >> both servers.
> >> >> >From the errors it almost looks like some sort of permission
> >> problem,
> >> >> but
> >> >> since it logs in from XP clients then that throws that theory out t=

he
> >> door.
> >> >> Thanks for any info.
> >> >> Scott
> >> >> Here is the error that he said he gets:
> >> >> ************************************************** *****************=

*****
> >> Here it the message I get when trying to login from a Windows 98
> >> Machine.
> >> >> "The Password is Incorrect. Try Again"
> >> >> This only happens from Windows 98 or 95 machines. The same user can
> >> login
> >> >> to the samba server from Windows 2000 or XP.
> >> >> The log file from /var/log/samba on that machine is as follows: BTW
> >> I'm
> >> >> not trying to login as Administrator.
> >> >> [2008/05/06 09:11:20, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 09:11:20, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 09:11:29, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 09:11:29, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 09:11:35, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 09:11:35, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 09:11:47, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 09:11:47, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 09:15:12, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 09:15:12, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 09:28:32, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 09:28:32, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 10:02:51, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 10:02:51, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 13:18:56, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 13:18:56, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 13:49:06, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 13:49:06, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 13:53:41, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 13:53:41, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 14:01:34, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 14:01:34, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 14:24:56, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 14:24:56, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 14:25:50, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 14:25:50, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 14:28:47, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 14:28:47, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 14:35:56, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 14:35:56, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> [2008/05/06 14:55:06, 0]
> >> >> auth/auth_util.c:create_builtin_administrators(792)
> >> >> create_builtin_administrators: Failed to create Administrators
> >> >> [2008/05/06 14:55:06, 0] auth/auth_util.c:create_builtin_users(758)
> >> >> create_builtin_users: Failed to create Users
> >> >> ************************************************** *****************=

***
> >> Here is the smb.conf
> >> >> ************************************************** ***************
> >> [global]
> >> >> netbios name =3D park
> >> >> workgroup =3D PV
> >> >> server string =3D %h server (Samba, Ubuntu)
> >> >> dns proxy =3D no
> >> >> log file =3D /var/log/samba/log.%m
> >> >> max log size =3D 1000
> >> >> syslog =3D 0
> >> >> panic action =3D /usr/share/samba/panic-action %d
> >> >> encrypt passwords =3D true
> >> >> passdb backend =3D tdbsam
> >> >> obey pam restrictions =3D yes
> >> >> invalid users =3D root
> >> >> passwd program =3D /usr/bin/passwd %u
> >> >> passwd chat =3D *Enter\snew\s*\spassword:* %n\n
> >> >> *Retype\snew\s*\spassword:*
> >> >> %n\n *password\supdated\ssuccessfully* .
> >> >> map to guest =3D bad user
> >> >> socket options =3D TCP_NODELAY
> >> >> usershare allow guests =3D yes
> >> >> comment =3D Home Directories
> >> >> browseable =3D yes
> >> >> read only =3D no
> >> >> create mask =3D 0700
> >> >> directory mask =3D 0700
> >> >> valid users =3D %U
> >> >> locking =3D no
> >> >> [printers]
> >> >> comment =3D All Printers
> >> >> browseable =3D no
> >> >> path =3D /var/spool/samba
> >> >> printable =3D yes
> >> >> guest ok =3D no
> >> >> read only =3D yes
> >> >> create mask =3D 0700
> >> >> [print$]
> >> >> comment =3D Printer Drivers
> >> >> path =3D /var/lib/samba/printers
> >> >> browseable =3D yes
> >> >> read only =3D yes
> >> >> guest ok =3D no
> >> >> [Public]
> >> >> comment =3D Public Stuff
> >> >> path =3D /home/public
> >> >> public =3D yes
> >> >> writable =3D yes
> >> >> write list =3D @staff
> >> >> browsable =3D yes
> >> >> read only =3D no
> >> >> directory mode =3D 0770
> >> >> default case =3D upper
> >> >> [hcnul]
> >> >> path =3D /home/hcnul
> >> >> writable =3D yes
> >> >> write list =3D @hcnul
> >> >> browsable =3D yes
> >> >> read only =3D no
> >> >> directory mode =3D 0770
> >> >
> >> > Please do the following on the new samba server:
> >> > post the outcome of 'testparm -vs | grep lanman'
> >> >
> >> > As root, 'pdbedit -w username -d0', where "username" is a user
> >> > which is not working from win9x.
> >> >
> >> > Cheers, G=FCnter
> >>
> >>
> >>
> >> Here is what he said:
> >>
> >> The testparm command shows:
> >>
> >> Processing section "[homes]"
> >> .
> >> .
> >> .
> >> Loaded services file OK
> >> Server role: ROLE_STANDALONE
> >> lanman auth =3D No
> >> client lanman auth =3D No
> >>
> >> The pdbedit command shows:
> >>
> >> kemperk:1002:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:ADEC 9EDC3A6A794D691E6DFA=

=46CFAEE85:[U
> >> ]:LCT-481B6630:
> >>

> >
> > In some recent samba version some security defaults have changed
> > to more restricted ones, i.e. lanman auth, client lanman auth, ...
> > are now set to "no", if not explicitely specified.
> >
> > As you can see from the pdbedit output, the lanman hash has been
> > X-ed out, which means it's gone atm.
> >
> > To get the former win98 logon possibility back, do the
> > following:
> >
> > 1. Add "lanman auth =3D Yes" to the [global] section of smb.conf
> > 2. Now to get the old lanman hash back, you have to re-enter the
> > samba password for every affected user by using
> > 'smbpasswd your_username'
> >
> > Note that the old lanman hash has a weak design and can add
> > security problems to your network.
> >
> > If you also use the samba client tools, i.e. smbclient,
> > to access remote legacy servers, you also have to set
> > "client lanman auth =3D Yes" in smb.conf.
> >

>=20
> Thanks. I will check with him and see what he says. I was wondering why
> mine showed both of those =3D 'Yes' and his were both 'No'. If this works
> though, he will have to go through and add all the passwords back to the
> hash. Is there an easier way to add all the users back into the has
> without having to do them all manually?
>=20


Just had an even closer look to that now.

Do the following:
1. Add "lanman auth =3D Yes" to the [global] section of smb.conf
Note, that this change will also affect the outcome of pdbedit!
Sorry, I forgot to mention this. :-)

Then - as root - list all configured samba users with 'pdbedit -Lw'
Only those users must be re-configured, where the lanman hash has been
X-ed out. I think, nearly all will be listed as ok, so no further action
is needed for those.

Cheers, G=FCnter
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0