Samba Verzeichnisfreigabe

Hallo Leute,

habe meinen Samba auf SuSE 6.4 aktiviert. Habe ein Verzeichnis /daten angelegt (root), hat nun standardmäßig 755. Soweit klar.
Meine Arbeitsgruppe auf den Clients ist everyone.
Wenn ich nun in dem Freigabeverzeichnis eine vom Client aus eine Datei erstellen will, dann kommt access denied, es geht nur, wenn ich chmod 777 daten mache, erst dann kann ich trotz Verifizierung durch den smb etwas schreiben. Das kann doch nicht sein, daß mein Freigabeverzeichnis 777 hat, oder?
Was mache ich falsch?

Meine smb.conf sieht wie folgt aus:

;
; /etc/smb.conf
;
; Copyright © 1999 SuSE GmbH Nuernberg, Germany.
;
[global]
netbios name = SuSE
server string = Samba %v on ( %L )
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
workgroup = everyone
keep alive = 30
os level = 31
kernel oplocks = false

; Uncomment the following, if you want to use an existing
; NT-Server to authenticate users, but don’t forget that
; you also have to create them locally!!!
security = user
; password server = 192.168.1.10
; encrypt passwords = yes

printing = bsd
printcap name = /etc/printcap
load printers = yes

socket options = TCP_NODELAY

map to guest = Bad User

; Uncomment this, if you want to integrate your server
; into an existing net e.g. with NT-WS to prevent nettraffic
; local master = no

; Please uncomment the following entry and replace the
; ip number and netmask with the correct numbers for
; your ethernet interface.
interfaces = 192.168.0.2/255.255.255.0

; If you want Samba to act as a wins server, please set
; ‚wins support = yes‘
wins support = no

; If you want Samba to use an existing wins server,
; please uncomment the following line and replace
; the dummy with the wins server’s ip number.
; wins server = 192.168.0.2

; Do you wan’t samba to act as a logon-server for
; your windows 95/98 clients, so uncomment the
; following:
; logon script =%U.bat
; domain logons = yes
; domain master = yes
; [netlogon]
; path = /netlogon

[homes]
comment = Heimatverzeichnis
browseable = no
read only = no
create mode = 0750

; The following share gives all users access to the Server’s CD drive,
; assuming it is mounted under /cd. To enable this share, please remove
; the semicolons before the lines
;
; [cdrom]
; comment = Linux CD-ROM
; path = /cd
; read only = yes
; locking = no

[printers]
comment = All Printers
browseable = no
printable = yes
public = no
read only = yes
create mode = 0700
directory = /tmp

[tools]
comment = Tools
path = /tools
volume = TOOLS
writeable = no
writelist = admin chris

admin users = admin chris
valid users = admin chris florian gert

[daten]
comment = Daten
path = /daten
volume = DATEN
writeable = no
write list = admin chris

admin users = admin chris
valid users = admin chris

Vielen Dank für eure Hilfe

Gruß Christian :smile:)

Hi

Erstelle eine Gruppe und fuege die Leute welche auf schreiben duerfen dieser Gruppe hinzu (am Besten mit Yast). Dann uebergebe mit chgrp /daten das Verzeichnis der Gruppe. Setze die Rechte auf 775. Danach koennen nur mehr die Gruppenmitglieder schreiben. Der Grund fuer diese Komplikation ist, dass Samba als root laeuft, und deswegen fuer normale User, unter deren UID Samba Verzeichnisanfragen vornimmt natuerlich nicht in das Verzeichnis schreiben duerfen.

Ausserdem wuerde ich writeable auf Yes setzen, sowie „browseable = Yes“

Genauere Informationen gibt es hierzu im Samba Buch was unter Swat jeder Distrubution beiliegt, sowie bei O’Reilly erschienen ist. Lesenswerte Lektuere!

CU Roland