Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba client can't connect
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
robvr
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2004
Posts: 93
Location: Best, The Netherlands

PostPosted: Fri Mar 13, 2020 4:05 pm    Post subject: samba client can't connect Reply with quote

I run a Samba server for the exclusive purpose of accessing files and a printer form a Windows 98 client. At some point in the past year, things broke (again...), and I'm out of ideas for getting it to work again.

Samba version is 4.8.6-r2

/etc/samba/smb.conf:

# Global parameters
[global]
#activate crappy WIN98 authentication
lanman auth = yes
client lanman auth = yes
client ntlmv2 auth = no
workgroup = HOME
netbios name = FILER
server string = %h server (Samba %v)
encrypt passwords = true
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
invalid users = root
security = user
passdb backend = tdbsam
server signing = disabled
wins support = yes

# For Samba 3.x. This enables ClamAV on access scanning.
#vfs object = vscan-clamav
#vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = Yes

[lp]
comment = Generic dot-matrix printer entry
path = /tmp
read only = No
create mask = 0700
printable = Yes
printing = nt
printer name = lp
use client driver = Yes
oplocks = No

[bakbeest]
comment = Generic dot-matrix printer entry
path = /tmp
read only = No
create mask = 0700
printable = Yes
printing = nt
printer name = bakbeest
use client driver = Yes
oplocks = No


[homes]
comment = homes
path = %H
writeable = yes
browseable = yes
valid users = %S


Any attempt to contact the server is blocked with a "password incorrect" message. There are no errors (or other signs of the attempted contact) in /var/log/samba/log.nmbd or /var/log/samba/log.smbd.

Just to be sure, I ran smbpasswd -a <user> to make sure of the password.

Nothing helps. I'm completely stuck and getting desperate. Not having that WIN98 machine working and accessing files is just not an option.
Back to top
View user's profile Send private message
hdcg
n00b
n00b


Joined: 07 Apr 2013
Posts: 65

PostPosted: Mon Mar 23, 2020 6:43 am    Post subject: Reply with quote

Hi robvr,

most likely this is caused by some new defaults of your Samba version e.g.:

Quote:
...
NTLMv1 authentication disabled by default
-----------------------------------------

In order to improve security we have changed
the default value for the "ntlm auth" option from
"yes" to "no". This may have impact on very old
clients which doesn't support NTLMv2 yet.
...


Also take a look at the min protocol settings of your Samba https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#SERVERMINPROTOCOL.

Best Regards,
Holger
Back to top
View user's profile Send private message
robvr
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2004
Posts: 93
Location: Best, The Netherlands

PostPosted: Wed Mar 25, 2020 10:22 am    Post subject: Reply with quote

Holger,

thanks for the link and pointers. I've been experimenting with the various options, but so far, to no avail. I fully realise I'm trying to use a protocol version from the stone age, but as far as I can tell, the configuration should allow this. I suspect there's one well hidden hoop I've neglected to jump through; either I'll find it at some point, or I'll have to fall back to a horrible solution: revive an old samba server that still works as a VM, export the files to that through NFS, and pass them on to Win98 via the old samba deamon.

I'd much rather do this properly though, so any hints as to which hoop I'm missing remail welcome..
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14922

PostPosted: Thu Mar 26, 2020 2:31 am    Post subject: Reply with quote

Why does the Windows 98 machine need to continue working? At some point, its hardware will fail, and I doubt that key hardware available today will work with such an old operating system. In my opinion, you ought to spend some time migrating essential tasks off that system so that its inevitable failure does not cause bigger problems.
Back to top
View user's profile Send private message
robvr
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2004
Posts: 93
Location: Best, The Netherlands

PostPosted: Thu Mar 26, 2020 7:30 am    Post subject: Reply with quote

Hu wrote:
Why does the Windows 98 machine need to continue working? At some point, its hardware will fail, and I doubt that key hardware available today will work with such an old operating system. In my opinion, you ought to spend some time migrating essential tasks off that system so that its inevitable failure does not cause bigger problems.
It needs to keep working because there simply is no workable alternative; there is no other OS for which drivers exist for a piece of hardware for which there are no modern alternatives that do not require six digit investments. When a pallet with 24 of these machines was discovered in the early 2000s, people literally went on thousand mile yourneys to try and get their hands on the last ones.

If I could move away from Win98, I would have done so a decade ago. The stock of available hardware will most likely last longer than the rest of my life, and even should it fail, I could run in a virtual machine for much longer. Eventual failure of the complete stack cannot be prevented, but that doesn't mean I intend to give up right now, and right now the only part in a critical condition is the samba server.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum