[Samba] NT1 SMB1 Updates simplified configuration

Mark Bannister mark at injection-moldings.com
Fri Jun 16 19:32:33 UTC 2023


I appreciate everyone's patience.  I have been posting a few times about 
this but this time I simplified the server to a standalone file server.

Ubuntu 22.04.2,  Version 4.15.13-Ubuntu, ext4 file system

My software requires SMB1.  It reads lock files (*.LCK, *.net) to 
determine the lock status of records and tables in a database. Samba 
freezes and my software times out when querying  the lock files.

The log files at level 5 are quite long and I don't see any obvious 
errors.   Thunderbird keeps crashing when I tray to paste them here.  
Trying everything I can but can't make it change. Help is very much 
appreciated.

testparm -s
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed

Server role: ROLE_STANDALONE

# Global parameters
[global]
         client max protocol = NT1
         client min protocol = NT1
         log file = /var/log/samba/log.%m
         logging = file
         map to guest = Bad User
         max log size = 1000
         name resolve order = wins host bcast
         obey pam restrictions = Yes
         pam password change = Yes
         panic action = /usr/share/samba/panic-action %d
         passwd chat = *Enter\snew\s*\spassword:* %n\n 
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
         passwd program = /usr/bin/passwd %u
         server max protocol = NT1
         server min protocol = NT1
         server role = standalone server
         server string = %h server (Samba, Ubuntu)
         unix password sync = Yes
         usershare allow guests = Yes
         wins support = Yes
         idmap config * : range = 3000-7999
         idmap config lingroup : backend = rid
         idmap config lingroup : range = 10000-999999
         idmap config * : backend = tdb
         admin users = sysadmin
         create mask = 0660
         force create mode = 0770
         force directory mode = 0770
         hosts allow = 127.0.0.1 192.168.1. 192.168.0.0/26
         hosts deny = 0.0.0.0/0
         posix locking = No
         use client driver = Yes
         veto oplock files = 
/*.TV/*.FAM/*.dat/*.DAT/*.db/*.DB/*.X??/*.x??/*.Y??/*.y??/*.MB/*.mb/*.VAL/*.val/*.PX/*.px/*.mdb/*.MDB/*.lck/*.LCK/*.net/*.NET/


[printers]
         browseable = No
         comment = All Printers
         create mask = 0700
         path = /var/spool/samba
         printable = Yes


[print$]
         comment = Printer Drivers
         path = /var/lib/samba/printers


[PDFprinter]
         comment = Cups Virtual PDF Printer
         guest ok = Yes
         lpq command =
         path = /var/spool/samba
         printable = Yes


[DATA]
         comment = APP Files
         ea support = No
         force group = sambashare
         force user = nobody
         guest ok = Yes
         path = /mnt/APPDATA
         read only = No
         store dos attributes = No
         write list = @sambashare

--
Mark B


More information about the samba mailing list