staging.inyokaproject.org

Dateifreigabe diverse Probleme

Status: Ungelöst | Ubuntu-Version: Lubuntu 18.04 (Bionic Beaver)
Antworten |

Schmusebaerchen

Avatar von Schmusebaerchen

Anmeldungsdatum:
10. November 2010

Beiträge: Zähle...

Hallo,

ich versuche gerade bei mir mehrere Netzlaufwerke einzurichten. Jedoch komme ich bei mehreren Problemen nicht weiter. Im Netzwerk sind mehrere Computer (Windows7 x64, Lubuntu 12.04 bis 18.04 x86/x64, Desktops, Laptops, Einplatinenrechner). Meine Daten sind auf externen Festplatten (Dateisystem: ext4) und werden je nach Bedarf an einen anderen PC (ausschließlich Lubuntu) gesteckt. Weil die PCs in unterschiedlichen Räumen stehen und ich manchmal mit mehreren PCs auf die gleiche Festplatte zugreifen muss, wollte ich die Netzlaufwerke mal ordentlich einrichten. Computer sind per Telekom Router und Netgear Switch über 100Mbit/s bzw. 1Gbit/s LAN bzw. 54MBit/s WLAN verbunden.

Als Software benutze ich net usershare (Samba) per Konsole. https://wiki.ubuntuusers.de/Samba_Server/net_usershare/ Alle Server haben den gleichen Benutzernamen, sollen auch den gleichen Samba Benutzer und das gleiche Passwort bekommen. Lediglich der Computername ist unterschiedlich.

1. Wenn ich wie in der Anleitung "net usershare add Ordner /Ordner Kommentar Everyone:f guest_ok=n" eintippe, dann funktioniert die Freigabe. Tippe ich jedoch "net usershare add Ordner /Ordner Kommentar Everyone:d,Schmusebaerchen:f guest_ok=n" ein, so funktioniert der Zugriff nicht. Bei "net usershare info" erscheint vor dem Benutzernamen der Computername (siehe Link oben). Wie ändere ich den Computernamen? Keine der Anleitungen die ich im Internet gefunden habe sagt zu diesem Punkt etwas. Oder sind meine Daten bereits geschützt, wenn Everyone:f und guest:no ist? Weil ich habe auch keine Lust bei jedem der PCs jeden PC Namen einzutragen.

2. Punkt 2 hat sich gerade erledigt. Der 1 Gbit/s Telekom Router ist nicht in der Lage einen Dateizugriff im LAN flüssig zu übertragen (nicht mal routen!). Teilweise 2 min Wartezeiten bis ein Ordner mit einem 1 MB Bild geöffnet ist. Videos ruckelt alles. 20 Jahre alter 100 MBit/s Switch als Ersatz hingestellt und siehe da, mehrere Full HD Videos von mehreren PCs absolut flüssig. Wenn das Teil noch weiterhin meine Zeit bei der Fehlersuche in Anspruch nimmt, weil es nicht das macht was es soll, schmeiß ich das Ding der Telekom um die Ohren.

3. VLC und MPV können Videos auf Ordnern im Netzwerk nicht wiedergeben. VLC sagt, dass er den Ordner nicht finden kann und MPV startet gleich gar nicht. Gnome Player geht, aber der schmiert ab und zu ab und ist auch nicht unbedingt meine erste Wahl. Unter Windows nimmt VLC den Netzwerklagerort an.

4. Von Windows 7 aus komme ich nur auf einen der beiden Linux Rechner. Und auch das nicht immer. Evtl. hat das mit dem Performance Problem zu tun. Unter "control userpasswords2" habe ich die PC und Passwörter eingetragen. Da kommt manchmal der Fehler "0x80070425" und dann sind alle meine Eintragungen weg. Kann Windows den gleichen Benutzernamen nur einem Netzwerkcomputer zuordnen? Von dem anderen Linuxrechner komme ich drauf. Und vorher kam ich auch von dem Windows PC drauf.

5. Ich kann bei Thunderbird beim Email schreiben per Drag 'n Drop keine Datei aus dem Netzwerk anhängen, sondern muss diese immer erst auf den entsprechenden Computer donwloaden und dann anhängen oder über die Menüs manuell zur Datei navigieren. Ich denke mal Thunderbird ist nicht das einzige Programm, was da Probleme macht. Aber da fällt es mir immer wieder auf.

6. Ordnernamen mit Sonderzeichen (teilweise ausländische Schriftzeichen) werden nicht richtig dargestellt. Ordner werden umbenannt in den normalen englischen Zeichensatz. z.B. "R6W0IF~V" oder "KNDLJP~8" Gibt es da einen Workaround? Betrifft nur die Ordner. Dateinamen werden richtig dargestellt, also verschmerzbar, wenn es keine Lösung gibt.

7. Vorschaubilder funktionieren bei Linux keine mp4 und andere Videoformate. Und bei PcManFm kann ich auch nur maximal 32MB als maximale Dateigröße zur Generierung einer Vorschau angeben.

chr123

Anmeldungsdatum:
19. Juli 2018

Beiträge: 1632

Der Artikel ist nur für 14.04 getestet. Von daher hat sich ggf etwas bei net usershare geändert. Spricht was dagegen, die Shares ganz konventionell via smb.conf freizugeben? Generell wäre die Ausgabe von

testparm -v

sinnvoll.

Ich meine mal gelesen zu haben, daß Windows Home (also nicht die Pro / Business Version) nur auf einen Share gleichzeitig zugreifen kann. Von daher würde das deinen Fehler erklären. Aber das wäre eher eine Frage für ein Windows Forum.

Schmusebaerchen

(Themenstarter)
Avatar von Schmusebaerchen

Anmeldungsdatum:
10. November 2010

Beiträge: Zähle...

Ich wollte mich damit nicht so tiefgründig beschäftigen, weil ich noch genügend andere Baustellen und Hobbys habe 😉. Die Funktionen net usershare reichen mir aus ... wenn sie richtig funktionieren.

Zu 4.: Mir ist Heute aufgefallen, dass ich an einem weiteren PC das neue Passwort nicht eintippen musste. Also lag es am Passwort. Was passiert wenn ich "sudo smbpasswd -a" aber ohne User eintippe? Linux hat nicht gemeckert, dass er den Benutzer nicht finden kann.

Windows 7 (Pro) kann zwar jetzt zugreifen, hat aber ein anderes Problem. Solange beide Rechner per Kabel am gleichen Switch hängen, bekomme ich im Windowsexplorer unter Netzwerk bei beiden Servern nur den Inhalt von Server 1 angezeigt. Wenn ich von Server 1 das LAN Kabel trenne und per WLAN ins Netzwerk gehe kann ich auf Server 1 und 2 zugreifen. Stecke ich das Netzwerkkabel wieder rein, geht wieder nur Server 1. Rechnernamen sind verschieden. Angemeldeter Benutzer, Samba Benutzer und Samba Passwort sind gleich.

Vielleicht sollte ich noch sagen: Synergy läuft parallel und ich hatte mal versucht meinen Drucker per Netzwerkfreigabe einzurichten. Aber das ist mindestens 5 Jahre her. Keine Ahnung was ich damals gemacht habe. Auf jeden Fall nicht sehr tief im System drin.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
Schmusebaerchen@Server1:~$ testparm -v
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
	dos charset = CP850
	unix charset = UTF-8
	workgroup = WORKGROUP
	realm = 
	netbios name = Server1
	netbios aliases = 
	netbios scope = 
	server string = %h server (Samba, Ubuntu)
	interfaces = 
	bind interfaces only = No
	config backend = file
	server role = standalone server
	security = AUTO
	auth methods = 
	encrypt passwords = Yes
	client schannel = Auto
	server schannel = Auto
	allow trusted domains = Yes
	map to guest = Bad User
	null passwords = No
	old password allowed period = 60
	obey pam restrictions = Yes
	password server = *
	smb passwd file = /etc/samba/smbpasswd
	private dir = /var/lib/samba/private
	passdb backend = tdbsam
	algorithmic rid base = 1000
	root directory = 
	guest account = nobody
	enable privileges = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd chat debug = No
	passwd chat timeout = 2
	check password script = 
	username map = 
	username level = 0
	unix password sync = Yes
	restrict anonymous = 0
	lanman auth = No
	ntlm auth = Yes
	raw NTLMv2 auth = No
	client NTLMv2 auth = Yes
	client lanman auth = No
	client plaintext auth = No
	client use spnego principal = No
	preload modules = 
	dedicated keytab file = 
	kerberos method = default
	map untrusted to domain = No
	log level = 2
	syslog = 0
	syslog only = No
	log file = /var/log/samba/log.%m
	logging = 
	max log size = 1000
	debug timestamp = Yes
	timestamp logs = Yes
	debug prefix timestamp = No
	debug hires timestamp = Yes
	debug pid = No
	debug uid = No
	debug class = No
	enable core files = Yes
	smb ports = 445 139
	large readwrite = Yes
	server max protocol = SMB3
	max protocol = SMB3
	protocol = SMB3
	server min protocol = LANMAN1
	min protocol = LANMAN1
	client max protocol = default
	client min protocol = CORE
	unicode = Yes
	min receivefile size = 0
	read raw = Yes
	write raw = Yes
	disable netbios = No
	reset on zero vc = No
	log writeable files on exit = No
	defer sharing violations = Yes
	nt pipe support = Yes
	nt status support = Yes
	smbd profiling level = off
	max mux = 50
	max xmit = 16644
	name resolve order = lmhosts wins host bcast
	max ttl = 259200
	max wins ttl = 518400
	min wins ttl = 21600
	time server = No
	unix extensions = Yes
	use spnego = Yes
	client signing = default
	server signing = default
	client use spnego = Yes
	client ldap sasl wrapping = sign
	ldap server require strong auth = Yes
	enable asu support = No
	svcctl list = 
	cldap port = 389
	dgram port = 138
	nbt port = 137
	krb5 port = 88
	kpasswd port = 464
	web port = 901
	rpc big endian = No
	deadtime = 0
	getwd cache = Yes
	keepalive = 300
	change notify = Yes
	kernel change notify = Yes
	lpq cache time = 30
	max smbd processes = 0
	max disk size = 0
	max open files = 16384
	socket options = TCP_NODELAY
	use mmap = Yes
	hostname lookups = No
	name cache timeout = 660
	ctdbd socket = 
	cluster addresses = 
	clustering = No
	ctdb timeout = 0
	ctdb locktime warn threshold = 0
	smb2 max read = 8388608
	smb2 max write = 8388608
	smb2 max trans = 8388608
	smb2 max credits = 8192
	load printers = Yes
	printcap cache time = 750
	printcap name = 
	cups server = 
	cups encrypt = No
	cups connection timeout = 30
	iprint server = 
	disable spoolss = No
	addport command = 
	enumports command = 
	addprinter command = 
	deleteprinter command = 
	show add printer wizard = Yes
	os2 driver map = 
	mangling method = hash2
	mangle prefix = 1
	max stat cache size = 256
	stat cache = Yes
	machine password timeout = 604800
	add user script = 
	rename user script = 
	delete user script = 
	add group script = 
	delete group script = 
	add user to group script = 
	delete user from group script = 
	set primary group script = 
	add machine script = 
	shutdown script = 
	abort shutdown script = 
	username map script = 
	username map cache time = 0
	logon script = 
	logon path = \\%N\%U\profile
	logon drive = 
	logon home = \\%N\%U
	domain logons = No
	init logon delayed hosts = 
	init logon delay = 100
	os level = 20
	lm announce = Auto
	lm interval = 60
	preferred master = Auto
	local master = Yes
	domain master = Auto
	browse list = Yes
	enhanced browsing = Yes
	dns proxy = No
	wins proxy = No
	wins server = 
	wins support = No
	wins hook = 
	smb2 leases = No
	lock spin time = 200
	oplock break wait time = 0
	ldap admin dn = 
	ldap delete dn = No
	ldap group suffix = 
	ldap idmap suffix = 
	ldap machine suffix = 
	ldap passwd sync = no
	ldap replication sleep = 1000
	ldap suffix = 
	ldap ssl = start tls
	ldap ssl ads = No
	ldap deref = auto
	ldap follow referral = Auto
	ldap timeout = 15
	ldap connection timeout = 2
	ldap page size = 1024
	ldap user suffix = 
	ldap debug level = 0
	ldap debug threshold = 10
	eventlog list = 
	add share command = 
	change share command = 
	delete share command = 
	config file = 
	preload = 
	auto services = 
	lock directory = /var/run/samba
	state directory = /var/lib/samba
	cache directory = /var/cache/samba
	pid directory = /var/run/samba
	ntp signd socket directory = /var/lib/samba/ntp_signd
	utmp directory = 
	wtmp directory = 
	utmp = No
	default service = 
	default = 
	message command = 
	get quota command = 
	set quota command = 
	remote announce = 
	remote browse sync = 
	nbt client socket address = 0.0.0.0
	socket address = 0.0.0.0
	nmbd bind explicit broadcast = Yes
	homedir map = auto.home
	afs username map = 
	afs token lifetime = 604800
	log nt token command = 
	NIS homedir = No
	registry shares = No
	usershare allow guests = Yes
	usershare max shares = 100
	usershare owner only = Yes
	usershare path = /var/lib/samba/usershares
	usershare prefix allow list = 
	usershare prefix deny list = 
	usershare template share = 
	allow insecure wide links = No
	async smb echo handler = No
	panic action = /usr/share/samba/panic-action %d
	perfcount module = 
	host msdfs = Yes
	passdb expand explicit = No
	idmap backend = tdb
	idmap cache time = 604800
	idmap negative cache time = 120
	idmap uid = 
	idmap gid = 
	template homedir = /home/%D/%U
	template shell = /bin/false
	winbind separator = \
	winbind cache time = 300
	winbind reconnect delay = 30
	winbind request timeout = 60
	winbind max clients = 200
	winbind enum users = No
	winbind enum groups = No
	winbind use default domain = No
	winbind trusted domains only = No
	winbind nested groups = Yes
	winbind expand groups = 0
	winbind nss info = template
	winbind refresh tickets = No
	winbind offline logon = No
	winbind normalize names = No
	winbind rpc only = No
	create krb5 conf = Yes
	ncalrpc dir = /var/run/samba/ncalrpc
	winbind max domain connections = 1
	winbindd socket directory = /var/run/samba/winbindd
	winbindd privileged socket directory = /var/lib/samba/winbindd_privileged
	winbind sealed pipes = Yes
	neutralize nt4 emulation = No
	reject md5 servers = No
	require strong key = Yes
	allow dns updates = secure only
	dns forwarder = 
	dns update command = /usr/sbin/samba_dnsupdate
	nsupdate command = /usr/bin/nsupdate -g
	rndc command = /usr/sbin/rndc
	multicast dns register = Yes
	samba kcc command = /usr/sbin/samba_kcc
	server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate, dns
	dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver
	spn update command = /usr/sbin/samba_spnupdate
	share backend = classic
	allow nt4 crypto = No
	reject md5 clients = No
	tls enabled = Yes
	tls keyfile = tls/key.pem
	tls certfile = tls/cert.pem
	tls cafile = tls/ca.pem
	tls crlfile = 
	tls dh params file = 
	tls priority = NORMAL:-VERS-SSL3.0
	tls verify peer = as_strict_as_possible
	client ipc max protocol = default
	client ipc min protocol = default
	client ipc signing = default
	allow dcerpc auth level connect = No
	idmap config * : backend = tdb
	comment = 
	path = 
	username = 
	invalid users = 
	valid users = 
	admin users = 
	read list = 
	write list = 
	force user = 
	force group = 
	group = 
	read only = Yes
	spotlight = No
	acl check permissions = Yes
	acl group control = No
	acl map full control = Yes
	acl allow execute always = No
	create mask = 0744
	force create mode = 0000
	directory mask = 0755
	directory mode = 0755
	force directory mode = 0000
	force unknown acl user = No
	inherit permissions = No
	inherit acls = No
	inherit owner = No
	guest only = No
	administrative share = No
	guest ok = No
	only user = No
	hosts allow = 
	hosts deny = 
	allocation roundup size = 1048576
	aio read size = 0
	aio write size = 0
	aio write behind = 
	ea support = No
	nt acl support = Yes
	profile acls = No
	map acl inherit = No
	afs share = No
	smb encrypt = default
	durable handles = Yes
	block size = 1024
	directory name cache size = 100
	max connections = 0
	min print space = 0
	strict allocate = No
	strict rename = No
	strict sync = No
	sync always = No
	use sendfile = No
	write cache size = 0
	max reported print jobs = 0
	max print jobs = 1000
	printable = No
	print notify backchannel = No
	printing = cups
	cups options = 
	print command = 
	lpq command = %p
	lprm command = 
	lppause command = 
	lpresume command = 
	queuepause command = 
	queueresume command = 
	printer name = 
	use client driver = No
	default devmode = Yes
	force printername = No
	printjob username = %U
	default case = lower
	case sensitive = Auto
	preserve case = Yes
	short preserve case = Yes
	mangling char = ~
	hide dot files = Yes
	hide special files = No
	hide unreadable = No
	hide unwriteable files = No
	delete veto files = No
	veto files = 
	hide files = 
	veto oplock files = 
	map archive = Yes
	map hidden = No
	map system = No
	map readonly = yes
	mangled names = Yes
	store dos attributes = No
	dmapi support = No
	browseable = Yes
	access based share enum = No
	blocking locks = Yes
	csc policy = manual
	fake oplocks = No
	kernel oplocks = No
	kernel share modes = Yes
	locking = Yes
	oplocks = Yes
	level2 oplocks = Yes
	oplock contention limit = 2
	posix locking = Yes
	strict locking = Auto
	dfree cache time = 0
	dfree command = 
	include = 
	preexec = 
	exec = 
	preexec close = No
	postexec = 
	root preexec = 
	root preexec close = No
	root postexec = 
	available = Yes
	volume = 
	fstype = NTFS
	wide links = No
	follow symlinks = Yes
	dont descend = 
	magic script = 
	magic output = 
	delete readonly = No
	dos filemode = No
	dos filetimes = Yes
	dos filetime resolution = No
	fake directory create times = No
	vfs objects = 
	msdfs root = No
	msdfs proxy = 
	msdfs shuffle referrals = No
	ntvfs handler = unixuid, default


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


[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
Schmusebaerchen@Server2:~$ testparm -v
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
	dos charset = CP850
	unix charset = UTF-8
	workgroup = WORKGROUP
	realm = 
	netbios name = Server2
	netbios aliases = 
	netbios scope = 
	server string = %h server (Samba, Ubuntu)
	interfaces = 
	bind interfaces only = No
	config backend = file
	server role = standalone server
	security = AUTO
	auth methods = 
	encrypt passwords = Yes
	client schannel = Auto
	server schannel = Auto
	allow trusted domains = Yes
	map to guest = Bad User
	null passwords = No
	old password allowed period = 60
	obey pam restrictions = Yes
	password server = *
	smb passwd file = /etc/samba/smbpasswd
	private dir = /var/lib/samba/private
	passdb backend = tdbsam
	algorithmic rid base = 1000
	root directory = 
	guest account = nobody
	enable privileges = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd chat debug = No
	passwd chat timeout = 2
	check password script = 
	username map = 
	username level = 0
	unix password sync = Yes
	restrict anonymous = 0
	lanman auth = No
	ntlm auth = Yes
	raw NTLMv2 auth = No
	client NTLMv2 auth = Yes
	client lanman auth = No
	client plaintext auth = No
	client use spnego principal = No
	preload modules = 
	dedicated keytab file = 
	kerberos method = default
	map untrusted to domain = No
	log level = 2
	syslog = 0
	syslog only = No
	log file = /var/log/samba/log.%m
	logging = 
	max log size = 1000
	debug timestamp = Yes
	timestamp logs = Yes
	debug prefix timestamp = No
	debug hires timestamp = Yes
	debug pid = No
	debug uid = No
	debug class = No
	enable core files = Yes
	smb ports = 445 139
	large readwrite = Yes
	server max protocol = SMB3
	max protocol = SMB3
	protocol = SMB3
	server min protocol = LANMAN1
	min protocol = LANMAN1
	client max protocol = default
	client min protocol = CORE
	unicode = Yes
	min receivefile size = 0
	read raw = Yes
	write raw = Yes
	disable netbios = No
	reset on zero vc = No
	log writeable files on exit = No
	defer sharing violations = Yes
	nt pipe support = Yes
	nt status support = Yes
	smbd profiling level = off
	max mux = 50
	max xmit = 16644
	name resolve order = lmhosts wins host bcast
	max ttl = 259200
	max wins ttl = 518400
	min wins ttl = 21600
	time server = No
	unix extensions = Yes
	use spnego = Yes
	client signing = default
	server signing = default
	client use spnego = Yes
	client ldap sasl wrapping = sign
	ldap server require strong auth = Yes
	enable asu support = No
	svcctl list = 
	cldap port = 389
	dgram port = 138
	nbt port = 137
	krb5 port = 88
	kpasswd port = 464
	web port = 901
	rpc big endian = No
	deadtime = 0
	getwd cache = Yes
	keepalive = 300
	change notify = Yes
	kernel change notify = Yes
	lpq cache time = 30
	max smbd processes = 0
	max disk size = 0
	max open files = 16384
	socket options = TCP_NODELAY
	use mmap = Yes
	hostname lookups = No
	name cache timeout = 660
	ctdbd socket = 
	cluster addresses = 
	clustering = No
	ctdb timeout = 0
	ctdb locktime warn threshold = 0
	smb2 max read = 8388608
	smb2 max write = 8388608
	smb2 max trans = 8388608
	smb2 max credits = 8192
	load printers = Yes
	printcap cache time = 750
	printcap name = 
	cups server = 
	cups encrypt = No
	cups connection timeout = 30
	iprint server = 
	disable spoolss = No
	addport command = 
	enumports command = 
	addprinter command = 
	deleteprinter command = 
	show add printer wizard = Yes
	os2 driver map = 
	mangling method = hash2
	mangle prefix = 1
	max stat cache size = 256
	stat cache = Yes
	machine password timeout = 604800
	add user script = 
	rename user script = 
	delete user script = 
	add group script = 
	delete group script = 
	add user to group script = 
	delete user from group script = 
	set primary group script = 
	add machine script = 
	shutdown script = 
	abort shutdown script = 
	username map script = 
	username map cache time = 0
	logon script = 
	logon path = \\%N\%U\profile
	logon drive = 
	logon home = \\%N\%U
	domain logons = No
	init logon delayed hosts = 
	init logon delay = 100
	os level = 20
	lm announce = Auto
	lm interval = 60
	preferred master = Auto
	local master = Yes
	domain master = Auto
	browse list = Yes
	enhanced browsing = Yes
	dns proxy = No
	wins proxy = No
	wins server = 
	wins support = No
	wins hook = 
	smb2 leases = No
	lock spin time = 200
	oplock break wait time = 0
	ldap admin dn = 
	ldap delete dn = No
	ldap group suffix = 
	ldap idmap suffix = 
	ldap machine suffix = 
	ldap passwd sync = no
	ldap replication sleep = 1000
	ldap suffix = 
	ldap ssl = start tls
	ldap ssl ads = No
	ldap deref = auto
	ldap follow referral = Auto
	ldap timeout = 15
	ldap connection timeout = 2
	ldap page size = 1024
	ldap user suffix = 
	ldap debug level = 0
	ldap debug threshold = 10
	eventlog list = 
	add share command = 
	change share command = 
	delete share command = 
	config file = 
	preload = 
	auto services = 
	lock directory = /var/run/samba
	state directory = /var/lib/samba
	cache directory = /var/cache/samba
	pid directory = /var/run/samba
	ntp signd socket directory = /var/lib/samba/ntp_signd
	utmp directory = 
	wtmp directory = 
	utmp = No
	default service = 
	default = 
	message command = 
	get quota command = 
	set quota command = 
	remote announce = 
	remote browse sync = 
	nbt client socket address = 0.0.0.0
	socket address = 0.0.0.0
	nmbd bind explicit broadcast = Yes
	homedir map = auto.home
	afs username map = 
	afs token lifetime = 604800
	log nt token command = 
	NIS homedir = No
	registry shares = No
	usershare allow guests = Yes
	usershare max shares = 100
	usershare owner only = Yes
	usershare path = /var/lib/samba/usershares
	usershare prefix allow list = 
	usershare prefix deny list = 
	usershare template share = 
	allow insecure wide links = No
	async smb echo handler = No
	panic action = /usr/share/samba/panic-action %d
	perfcount module = 
	host msdfs = Yes
	passdb expand explicit = No
	idmap backend = tdb
	idmap cache time = 604800
	idmap negative cache time = 120
	idmap uid = 
	idmap gid = 
	template homedir = /home/%D/%U
	template shell = /bin/false
	winbind separator = \
	winbind cache time = 300
	winbind reconnect delay = 30
	winbind request timeout = 60
	winbind max clients = 200
	winbind enum users = No
	winbind enum groups = No
	winbind use default domain = No
	winbind trusted domains only = No
	winbind nested groups = Yes
	winbind expand groups = 0
	winbind nss info = template
	winbind refresh tickets = No
	winbind offline logon = No
	winbind normalize names = No
	winbind rpc only = No
	create krb5 conf = Yes
	ncalrpc dir = /var/run/samba/ncalrpc
	winbind max domain connections = 1
	winbindd socket directory = /var/run/samba/winbindd
	winbindd privileged socket directory = /var/lib/samba/winbindd_privileged
	winbind sealed pipes = Yes
	neutralize nt4 emulation = No
	reject md5 servers = No
	require strong key = Yes
	allow dns updates = secure only
	dns forwarder = 
	dns update command = /usr/sbin/samba_dnsupdate
	nsupdate command = /usr/bin/nsupdate -g
	rndc command = /usr/sbin/rndc
	multicast dns register = Yes
	samba kcc command = /usr/sbin/samba_kcc
	server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate, dns
	dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver
	spn update command = /usr/sbin/samba_spnupdate
	share backend = classic
	allow nt4 crypto = No
	reject md5 clients = No
	tls enabled = Yes
	tls keyfile = tls/key.pem
	tls certfile = tls/cert.pem
	tls cafile = tls/ca.pem
	tls crlfile = 
	tls dh params file = 
	tls priority = NORMAL:-VERS-SSL3.0
	tls verify peer = as_strict_as_possible
	client ipc max protocol = default
	client ipc min protocol = default
	client ipc signing = default
	allow dcerpc auth level connect = No
	idmap config * : backend = tdb
	comment = 
	path = 
	username = 
	invalid users = 
	valid users = 
	admin users = 
	read list = 
	write list = 
	force user = 
	force group = 
	group = 
	read only = Yes
	spotlight = No
	acl check permissions = Yes
	acl group control = No
	acl map full control = Yes
	acl allow execute always = No
	create mask = 0744
	force create mode = 0000
	directory mask = 0755
	directory mode = 0755
	force directory mode = 0000
	force unknown acl user = No
	inherit permissions = No
	inherit acls = No
	inherit owner = No
	guest only = No
	administrative share = No
	guest ok = No
	only user = No
	hosts allow = 
	hosts deny = 
	allocation roundup size = 1048576
	aio read size = 0
	aio write size = 0
	aio write behind = 
	ea support = No
	nt acl support = Yes
	profile acls = No
	map acl inherit = No
	afs share = No
	smb encrypt = default
	durable handles = Yes
	block size = 1024
	directory name cache size = 100
	max connections = 0
	min print space = 0
	strict allocate = No
	strict rename = No
	strict sync = No
	sync always = No
	use sendfile = No
	write cache size = 0
	max reported print jobs = 0
	max print jobs = 1000
	printable = No
	print notify backchannel = No
	printing = cups
	cups options = 
	print command = 
	lpq command = %p
	lprm command = 
	lppause command = 
	lpresume command = 
	queuepause command = 
	queueresume command = 
	printer name = 
	use client driver = No
	default devmode = Yes
	force printername = No
	printjob username = %U
	default case = lower
	case sensitive = Auto
	preserve case = Yes
	short preserve case = Yes
	mangling char = ~
	hide dot files = Yes
	hide special files = No
	hide unreadable = No
	hide unwriteable files = No
	delete veto files = No
	veto files = 
	hide files = 
	veto oplock files = 
	map archive = Yes
	map hidden = No
	map system = No
	map readonly = yes
	mangled names = Yes
	store dos attributes = No
	dmapi support = No
	browseable = Yes
	access based share enum = No
	blocking locks = Yes
	csc policy = manual
	fake oplocks = No
	kernel oplocks = No
	kernel share modes = Yes
	locking = Yes
	oplocks = Yes
	level2 oplocks = Yes
	oplock contention limit = 2
	posix locking = Yes
	strict locking = Auto
	dfree cache time = 0
	dfree command = 
	include = 
	preexec = 
	exec = 
	preexec close = No
	postexec = 
	root preexec = 
	root preexec close = No
	root postexec = 
	available = Yes
	volume = 
	fstype = NTFS
	wide links = No
	follow symlinks = Yes
	dont descend = 
	magic script = 
	magic output = 
	delete readonly = No
	dos filemode = No
	dos filetimes = Yes
	dos filetime resolution = No
	fake directory create times = No
	vfs objects = 
	msdfs root = No
	msdfs proxy = 
	msdfs shuffle referrals = No
	ntvfs handler = unixuid, default


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


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

chr123

Anmeldungsdatum:
19. Juli 2018

Beiträge: 1632

Zunächst würde ich das OS Level bei einem von beiden auf 65 setzen.

os level = 65

Das ist der höchste Wert und verhindert hoffentlich, daß die Netzwerkfreigabe von Windows gestört ist.

Wg der Tilde bei den Ordneroptionen. Da gibt es diverse Name Mangling Options. Z. B.

mangled names = no

Das würde ich noch mal probieren.

Edit: Du kannst ja mal testen, ob sich die Übertragungsgeschwindigkeit in Abhängigkeit vom cifs / smb Protokoll ändert.

server max protocol = SMB3
#	max protocol = SMB3
#	protocol = SMB3

auf zum Beispiel NT1 ändern.

Schmusebaerchen

(Themenstarter)
Avatar von Schmusebaerchen

Anmeldungsdatum:
10. November 2010

Beiträge: Zähle...

Übertragungsgeschwindigkeit ist jetzt ok. Lag am Telekom Router.

Rest probiere ich morgen.

Schmusebaerchen

(Themenstarter)
Avatar von Schmusebaerchen

Anmeldungsdatum:
10. November 2010

Beiträge: Zähle...

Das mit den Ordnernamen funktioniert jetzt. Danke

os level bewirkt leider gar nichts. Egal was für Werte ich an welchem Server einstelle.

Kodi als Ersatz für MPV bzw. VLC kommt mit dem Netzwerklaufwerk klar und unterstützt Hardwarebeschleunigung. Von daher akzeptable Lösung.

Damit ist offen: 1. Everyone:f Sicherheit gegeben? 4. Windows egal welchen Samba Server ich anklicke, kommt immer nur der Inhalt von Server1, solange beide über Netzwerkkabel verbunden sind. 5. Drag n Drop für Thunderbird und co. 7. Vorschaubilder für alle Dateitypen (nicht ganz so wichtig).

chr123

Anmeldungsdatum:
19. Juli 2018

Beiträge: 1632

Da ich net usershare nicht nutze, kann ich dir da nicht weiterhelfen. Wieso eigentlich nicht die Freigabe direkt in der smb.conf erstellen?

Zu 4: Evtl ein Problem mit der Namensauflösung.

nmblookup -A Ip-Server1
nmblookup -A Ip-Server2
smbclient -N -L Ip-Server1
smbclient -N -L Ip-Server2

Von einem Ubuntu Client ausführen.

Schmusebaerchen

(Themenstarter)
Avatar von Schmusebaerchen

Anmeldungsdatum:
10. November 2010

Beiträge: Zähle...

Befehle wurden von einem vierten Rechner mit Lubuntu ausgeführt. Von diesem Ubunturechner komme ich auf die beiden Server, so wie es sein soll. Der Rechner hängt am WLAN, alle anderen am gleichen Switch.

Server2 scheint der Master zu sein. Das ist aber genau der, wo Windows nicht drauf zugreifen kann. Mich fragt auch was dieses MSBROWSE ist.

1
2
3
4
5
6
7
8
9
Schmusebaerchen@Ubunturechner:~$ nmblookup -A 192.168.10.1
Looking up status of 192.168.10.1
	Server1        <00> -         B <ACTIVE> 
	Server1        <03> -         B <ACTIVE> 
	Server1        <20> -         B <ACTIVE> 
	WORKGROUP       <00> - <GROUP> B <ACTIVE> 
	WORKGROUP       <1e> - <GROUP> B <ACTIVE> 

	MAC Address = 00-00-00-00-00-00
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Schmusebaerchen@Ubunturechner:~$ nmblookup -A 192.168.10.2
Looking up status of 192.168.10.2
	Server2           <00> -         B <ACTIVE> 
	Server2           <03> -         B <ACTIVE> 
	Server2           <20> -         B <ACTIVE> 
	..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> 
	WORKGROUP       <00> - <GROUP> B <ACTIVE> 
	WORKGROUP       <1d> -         B <ACTIVE> 
	WORKGROUP       <1e> - <GROUP> B <ACTIVE> 

	MAC Address = 00-00-00-00-00-00
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Schmusebaerchen@Ubunturechner:~$ smbclient -N -L 192.168.10.1
WARNING: The "syslog" option is deprecated
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]

	Sharename       Type      Comment
	---------       ----      -------
	print$          Disk      Printer Drivers
	IPC$            IPC       IPC Service (Server1 server (Samba, Ubuntu))
	Brother-DCP-120C-2 Printer   Brother DCP-120C
	DCP365CN        Printer   DCP365CN
	das             Disk      das
	bbb             Disk      bbb
	aaa             Disk      aaa
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]

	Server               Comment
	---------            -------
	Server2                Server2 server (Samba, Ubuntu)
	Server1                Server1 server (Samba, Ubuntu)

	Workgroup            Master
	---------            -------
	WORKGROUP            Server2
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Schmusebaerchen@Ubunturechner:~$ smbclient -N -L 192.168.10.2
WARNING: The "syslog" option is deprecated
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]

	Sharename       Type      Comment
	---------       ----      -------
	print$          Disk      Printer Drivers
	IPC$            IPC       IPC Service (Boma2 server1 (Samba, Ubuntu))
	DCP365CN        Printer   DCP365CN
	adaca           Disk      adaca
	aaa             Disk      acl
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]

	Server               Comment
	---------            -------
	Server2                Server2 server (Samba, Ubuntu)
	Ubunturechner               Ubunturechner server (Samba, Ubuntu)
	Windowsrechner             
	Server1             Server1 server (Samba, Ubuntu)

	Workgroup            Master
	---------            -------
	WORKGROUP            Server2

chr123

Anmeldungsdatum:
19. Juli 2018

Beiträge: 1632

Das ist schon korrekt so, da der Server 2 quasi der Master Browser sein soll. Die Frage ist, ob da noch andere Rechner versuchen, die Samba Server zu überdecken. Evtl blockieren die beiden Samba Dienste sich gegenseitig. Evtl bringt die Ausgabe von

nmblookup -M -- -

mehr Hilfe. Kannst du nochmal die aktuellen Parameter von Samba beide Ubuntus zeigen?

testparm -v | egrep 'master|level'

Wenn die beiden Rechner immer laufen, dann würde ich bei einem Rechner (Server 1)

local master = no
os level = 1
preferred master = no

und den anderen (Server 2) entsprechend

local master = yes
os level = 65 # Max ist wohl 255, also ggf auf 255 setzen
preferred master = yes

Schmusebaerchen

(Themenstarter)
Avatar von Schmusebaerchen

Anmeldungsdatum:
10. November 2010

Beiträge: Zähle...

1
2
...nmblookup -M ...
name_query failed to find name 192.168.10.1#1d

Bei beiden. Wenn ich die Netzwerknamen nehme das gleiche.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
Schmusebaerchen@Server1:~$ testparm -v | egrep 'master|level'
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

	username level = 0
	log level = 2
	smbd profiling level = off
	os level = 2
	preferred master = Auto
	local master = Yes
	domain master = Auto
	ldap debug level = 0
	allow dcerpc auth level connect = No
	level2 oplocks = Yes
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
Schmusebaerchen@Server2:~$ testparm -v | egrep 'master|level'
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

	username level = 0
	log level = 2
	smbd profiling level = off
	os level = 65
	preferred master = Auto
	local master = Yes
	domain master = Auto
	ldap debug level = 0
	allow dcerpc auth level connect = No
	level2 oplocks = Yes

Weitere Computer sind momentan nicht im Netzwerk. Ist auch kein Weltbewegender Aufbau:

1
2
3
4
5
6
7
Telekom Router - WLAN - Ubunturechner
  |
LAN
  |
Switch - LAN - Server1
Switch - LAN - Server2
Switch - LAN - Windowsrechner

Die Server sind nicht immer an und das jetzt ist nur der Test. Später sollen alle Linuxrechner als Server dienen. Einen PC als Fileserver hatte ich jetzt 2 Jahre lang. Wenn man Dateien von einem zum anderen PC übertragen wollte, dann musste man zum Server latschen, einschalten, zum Sende-PC latschen und hochladen. Danach zum Empfangs-PC latschen und runterladen. War alles abgeschlossen, dann wieder zum Server latschen und runterfahren.

Wenn es richtig funktioniert, könnte ich von jedem zu jedem Dateien hin und her schieben.

chr123

Anmeldungsdatum:
19. Juli 2018

Beiträge: 1632

Du kannst ja mal meinen Vorschlag von oben probieren, siehe Master Browser und OS Level auf 255.

Merkwürdig ist es trotzdem, das es unterschiedliche Ausgaben gibt, obwohl die smb.conf bis auf ein paar Ausnahmen gleich ist.

Den hostname von Server1 hast du nicht zufällig nachträglich geändert, oder?

cat /etc/hostname
cat /etc/hosts
hostname -f
cat /etc/nsswitch.conf 
sudo find /etc/samba/ -iname lmhost*

von Server1.

Edit:

1
2
...nmblookup -M ...
name_query failed to find name 192.168.10.1#1d

Bei mir sieht das wie folgt aus:

1
nmblookup -M -- -

ergibt:

192.168.1.6 __MSBROWSE__<01>

Das ist bei mir der Samba Server. Also irgendetwas haut bei deinem Server wohl nicht mit der Netbios Auflösung hin. Evtl. wurde mal der hostname umbenannt.

Antworten |