[Samba] some questions to samba and W7 and W10

Achim Klausmann achim.klausmann at t-online.de
Sun Apr 3 20:39:23 UTC 2016


Hello,

i got some clients (WINDOWS7 and WINDOWS10) to connect to samba shares.

OS is openSUSE 12.2; 13.1; 42.1
Samba-Version: 3.6.7; 4.1.22; 4.2.4
smb.conf is shown below.

The samba setup is a workgroup setup, the W7-clients
are set up to the workgroup 'workgroup'.
No further changes are made to the W7-clients.

samba setup:
groupadd workgroup
chgrp -R workgroup /srv/samba
chmod -R 770 /srv/samba
chmod g+s /srv/samba
for ((i=1;i<21;i++));do useradd -g workgroup -p "" user$i;done
for ((i=1;i<21;i++));do pdbedit -c '[NX ]' -u user$i;done

Connecting W7 to the samba shares is working,
but W10 won't connect to the shares.
net use y: \\192.168.0.98\share1 /USER:user1
net use z: \\192.168.0.98\dump /USER:user1

This won't work on W10-clients.

First question:
Man pages:
client max protocol (G)
The value of the parameter (a string) is the highest protocol
level that will be supported by the client.

Are here meant WINDOWS-clients or to samba-clients?

Second question:
How can connect to the shares with 'net use' command?
Which options are realy necessary?

smb.conf:
[global]
	security = USER
	server string = Samba Server
	workgroup = WORKGROUP
	os level = 66
	guest ok = no
	null passwords = yes
	unix password sync = yes
	passwd program = /usr/bin/passwd %u
	passdb expand explicit = no
	passdb backend = tdbsam
	lanman auth = yes
	client lanman auth = yes
	client plaintext auth = yes
	smb encrypt = no
	interfaces = eth* lo
	bind interfaces only = yes
         smb ports = 139

	unix extensions = no
	host msdfs = no

	log level = 2
	log file = /var/log/samba/samba.log.%U

	time server = yes
	local master = yes

	domain master = yes
	preferred master = yes

	wins support = yes
	name resolve order = wins lmhosts host bcast
	dns proxy = no
	wins proxy = no

	load printers = yes
	printing = cups
	printer name = cups
	printcap name = cups
	printcap cache time = 750
	lpq cache time = 0
	cups options = raw
	show add printer wizard = no

# entry for SAMBA 4 in openSUSE 42.1
# this is needed for a special softare
	acl allow execute always = yes

# restrict protocol for W7, W8, W10 ?
	max protocol = SMB2

[homes]
	comment = Home Directories
	valid users = %S, %D%w%S
	browseable = No
	read only = No
	inherit acls = Yes

[printers]
	comment = All Printers
	path = /var/tmp
	printable = Yes
	create mask = 0600
	browseable = No
	valid users = +workgroup
	write list = +workgroup
	use client driver = yes
	read only = yes

[share1]
	path = /srv/samba
	guest ok = no
	valid users = +workgroup
	browseable = yes
	writeable = yes
	force group = workgroup
	create mask = 740
	directory mask = 750
	force create mode = 020
	force directory mode = 020
	dos filemode = yes
	dos filetimes = yes
	dos filetime resolution = yes
	hide dot files = yes
	hide files = /lost+found/
	nt acl support = no
	store dos attributes = yes
	map archive = no
	strict locking = yes
	oplocks = no
	level2 oplocks = no
	use sendfile = no
	msdfs root = no
	change notify = yes
[dump]
	copy = share1
	path =/u01/app/oracle/admin/XE/dpdump
	valid users = +dba
	force group = dba

This setup is working since openSUSE 11.4 and WINDOWS XP.

Best regards
A. Klausmann





More information about the samba mailing list