Samba device specific setup?

Is there a way to have a device specific setup for samba?

It seems that my NAS needs min protocol set to NT1 and my Wifi router connection works with the min protocol set to SMB2 but not NT1.

Both devices have a static IP address if that is helpful.

My /etc/samba/smb.conf for reference. It is based on something I grabbed with PACMAN.

[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000

#client min protocol = SMB2
#added to allow access to the NAS drive
client min protocol = NT1

server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = NewUNIXpassword %n\n ReTypenewUNIXpassword* %n\n passwd:allauthenticationtokensupdatedsuccessfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070

[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700

I have found that the NT1 protocol are very old is considered insecure. My best overall solution is to get a new NAS that supports a newer SMB protocol.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.