PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Minimale smb.conf für einen sicheren Server mit einem Share



Grind
18.06.08, 19:39
Hallo!
Ich hab ja nun schon viel über Samba gelesen aber was ich gerne hätte wäre eine minimale smb.conf in der nur ein Share angeboten wird.
Das ganze soll möglichst sicher sein und der Share nur für einen einzigen User.

Danke schonmal für eure Hilfe!

Grind

UzumakiNaruto
18.06.08, 21:01
[global]
netbios name = SERVERNAME
workgroup = Arbeitsgruppe

interfaces = eth0
hosts allow = 192.168.0.

locking = No

read list = @users
write list = user1, user2

[DIR]
path = /path/to/the/dir

Grind
18.06.08, 21:11
Danke Uzu!

Kannst du mir noch verraten was locking bedeutet?

marce
19.06.08, 05:59
http://us3.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

UzumakiNaruto
19.06.08, 07:01
ohne es jetzt zu wissen, vermute ich das die datei gelockt wird, sobald sie im zugriff ist.

marce
19.06.08, 07:11
Fast :-)

If locking = no, all lock and unlock requests will appear to succeed and all lock queries will report that the file in question is available for locking.

If locking = yes, real locking will be performed by the server.

This option may be useful for read-only filesystems which may not need locking (such as CDROM drives), although setting this parameter of no is not really recommended even in this case.

Be careful about disabling locking either globally or in a specific service, as lack of locking may result in data corruption. You should never need to set this parameter.
... evtl. also noch mal drüber nachdenken, ob man das will...