Keine Schreibrechte bei Samba Freigabe

Hallo ihr,

und zwar bin ich grad am verzweifeln ich habe samba sowei eingerichtet das es futzt in dem Ordner Public kann ich Ordner erstellen und eben auch Daten einfügen. Wenn ich nun aba 2 weitere Ordner erstelle (Data1, Data2) habe ich keine schreibrechte. Wieso? Hier mal eine smb.conf:

#----------------------------------------------------------------------------

Samba configuration file generated by /var/install/config.d/samba.sh

Version of Samba for eisfair is 1.38.1.

SAMBA_MANUAL_CONFIGURATION is no.

Do not edit this file, use ‚Edit Samba Configuration‘

in Samba Services Menu!

Creation date: 14.06.2009 18:14:39

#----------------------------------------------------------------------------
[global]
dos charset = CP850
unix charset = ISO8859-15
display charset = ISO8859-15
workgroup = XXX
serverstring = Fileserver
interfaces = 127.0.0.1/8 192.168.2.133/255.255.255.0
bind interfaces only = yes
security = share
password server =
pam password change = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password:* %n\n *new*password:* %n\n *changed*
username map = /etc/user.map
username level = 2
unix password sync = yes
debug level = 3
max log size = 10000
nameresolveorder = lmhosts host wins bcast
time server = yes
deadtime = 60
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
printing = lprng
printcap name = /etc/printcap
printcap cache time = 0
load printers = no
mangling method = hash2
domain logons = no
add user script = /usr/sbin/useradd -m ‚%u‘ -c ‚%u‘
add machine script =
delete user script = /var/install/bin/remove-user ‚%u‘ y
add group script = /var/install/bin/add-group ‚%g‘
delete group script = /var/install/bin/remove-group ‚%g‘
add user to group script = /usr/sbin/usermod -G ‚%g‘ ‚%u‘
delete user from group script = /usr/sbin/userdel ‚%g‘ ‚%u‘
set primary group script = /var/install/bin/modify-user -g ‚%u‘ ‚%g‘
os level = 255
preferred master = yes
local master = yes
domain master = no
wins support = no
wins hook =
wins server =
wins proxy = no
kernel oplocks = no
utmp = yes
message command = /var/install/bin/samba-netbios-mail ‚%f‘ ‚%s‘
admin users = root
hosts allow = 127.0.0. 192.168.2.0/255.255.255.0
dos filetime resolution = yes
use sendfile = yes
unix extensions = no
enable privileges = no
enable core files = no
max mux = 10000
dos filemode = yes
acl group control = yes
acl compatibility = auto
force unknown acl user = yes
inherit acls = yes
map acl inherit = yes
map hidden = no
map system = no
map archive = no
map read only = no
store dos attributes = yes
ea support = yes
oplocks = no
level2 oplocks = no
blocking locks = no
hide files = /desktop.ini/Thumbs.db/
dos filemode = yes
dfree command = /var/install/bin/samba-dfree
dfree cache time = 3
strict allocate = partial

[homes]
comment = home directory on eis
writeable = yes
create mode = 0600
force create mode = 0600
directory mode= 0700
force directory mode= 0700
browseable = no
valid users = %S root
root preexec = /var/install/bin/samba-smbinfo „T=%T|d=%d|v=%v|h=%h|L=%L|N=%N|p=%p|R=%R|S=%S|P=%P|U=%U|G=%G|u=%u|g=%g|H=%H|I=%I|M=%M|m=%m|a=%a“ &
vfs objects = recycle
recycle:repository = samba_recycle_bin/%u
recycle:versions = yes
recycle:keeptree = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:directory_mode = 0777
recycle:subdir_mode = 0700

[all]
comment = root directory on eis
read only = no
browseable = no
path = /
dont descend = proc
valid users = root
create mode = 0700
force create mode = 0700
directory mode= 0700
force directory mode= 0700
root preexec = /var/install/bin/samba-smbinfo „T=%T|d=%d|v=%v|h=%h|L=%L|N=%N|p=%p|R=%R|S=%S|P=%P|U=%U|G=%G|u=%u|g=%g|H=%H|I=%I|M=%M|m=%m|a=%a“ &
vfs objects = recycle
recycle:repository = samba_recycle_bin/%u
recycle:versions = yes
recycle:keeptree = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:directory_mode = 0777
recycle:subdir_mode = 0700

[public]
comment = public directory on eis
path = /public
force create mode = 0777
force directory mode= 0777
browseable = yes
writeable = yes
root preexec = /var/install/bin/samba-smbinfo „T=%T|d=%d|v=%v|h=%h|L=%L|N=%N|p=%p|R=%R|S=%S|P=%P|U=%U|G=%G|u=%u|g=%g|H=%H|I=%I|M=%M|m=%m|a=%a“ &
vfs objects = recycle
recycle:repository = samba_recycle_bin/%u
recycle:versions = yes
recycle:keeptree = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:directory_mode = 0777
recycle:subdir_mode = 0700

[print$]
comment = samba printer drivers on %h
browseable = yes
writeable = no
path = /samba_printer_drivers
write list = root

[Data 2]
comment = Backups
writable = yes
browseable = yes
path = /Space-2/Data
create mask = 0775
force create mode = 0777
force directory mask = 0777
locking = no

[Data 1]
comment = Dokumente
writable = yes
path = /Space/Data
create mask = 0775
force create mode = 0777
force directory mask = 0777
locking = no

Hallo Tobsi,

ich habe samba sowei
eingerichtet das es futzt in dem Ordner Public kann ich Ordner
erstellen und eben auch Daten einfügen. Wenn ich nun aba 2
weitere Ordner erstelle (Data1, Data2) habe ich keine
schreibrechte.

[Data 2]
comment = Backups
writable = yes
browseable = yes
path = /Space-2/Data
create mask = 0775
force create mode = 0777
force directory mask = 0777
locking = no
[Data 1]
comment = Dokumente
writable = yes
path = /Space/Data
create mask = 0775
force create mode = 0777
force directory mask = 0777
locking = no

Ich habe deine smb.conf mal durch testparm gejagt (prüft die Syntax)

testparm smb.conf

und das meldet mir etliche Syntaxfehler:

ERROR: Badly formed boolean in configuration file: "partial".
lp\_bool(partial): value is not boolean!
Processing section "[homes]"
Processing section "[all]"
Processing section "[public]"
Processing section "[print$]"
Processing section "[Data 2]"
Unknown parameter encountered: "force directory mask"
Ignoring unknown parameter "force directory mask"
Processing section "[Data 1]"
Unknown parameter encountered: "force directory mask"
Ignoring unknown parameter "force directory mask"

Die solltest Du erstmal korrigieren und dann erneut durch testparm prüfen lassen. Und überprüfe auf jeden Fall, ob deine User auch unter Linux alle Rechte (rwx) auf die Verzeichnisse /Space-2/Data und /Space/Data haben. Sonst wird es natürlich nichts mit Schreiben :frowning:

Viele Grüße
Marvin

Hallo Marvin

erst mal danke für die antwort aber ich weiß jetzt nicht ob ich das mit den usern alles richtig gemacht hab ich habe in samba den User root angelegt muss ich nun für jeden pc einen User anlegen oder wie läuft das?

MFG

TObi

Ok hat sich erledigt hatte vergessen auf den erstellten ordner die rechte zuzuweißen ^^

Hallo Tobsi,

muss ich nun für jeden pc einen
User anlegen oder wie läuft das?

Ich weiss nicht, ob ich dich jetzt richtig verstehe, aber die User müssen schon auf dem jeweiligen System vorhanden sein, wie sollen sie sich sonst einloggen? Aber da Du ja nicht mit Samba anfängst und dann erst Linux bzw. Windows aufsetzt, sondern umgekehrt :wink: ist das ja der Fall.
Aber ich würde dir auf jeden Fall empfehlen, dich etwas mehr in Samba einzulesen. Das hier ist zwar etwas älter, aber für die Grundlagen noch brauchbar:
http://lug.krems.cc/docu/samba/
oder eben hier:
http://wiki.samba.org/index.php/Main_Page#Samba_Wiki…

Viele Grüße
Marvin