roadracer
06.03.10, 21:30
Hallo.
ich habe ein kleines Problem mit Samba, das es total unbrauchbar macht.
Ich habe eine Festplatte (NTFS) an eine FritzBox 7270 angeschlossen und greife darauf via Samba zu (Wird automatisch gemountet über /etc/fstab). Es wird von 4 PCs benutzt: 2x OpenSUSE 11.2, 1x OpenSUSE 11.1 und 1x Windows XP
Nun kann ich problemlos Daten hochladen und mit dem selben PC herunterladen. Will ich sie aber mit einem anderen PC herunterladen sind sie beschädigt, nur von Windows hochgeladene Daten können fehlerfrei von anderen PCs heruntergeladen werden. Also folgende Wege funktionieren:
LINUX1 => LINUX1 | LINUX2 => LINUX2 | LINUX3 => LINUX3 | WINDOWS => WINDOWS | WINDOWS => LINUX(1-3)
Meine /etc/smb.conf sieht so aus:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2009-06-24
[global]
workgroup = Msheimnetz
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
security = user
usershare max shares = 100
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
netbios name = Morphy
passdb backend = smbpasswd
wins support = No
ldap suffix =
wins server =
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
## Share disabled by YaST
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# write list = root
Die /etc/fstab sieht so aus:
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part8 swap swap defaults 0 0
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part7 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part6 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part10 /tmp ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part9 /var ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part1 /windows/C ntfs-3g users,force,exec,gid=users,fmask=111,dmask=002,loc ale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part5 /windows/E ntfs-3g users,force,exec,gid=users,fmask=111,dmask=002,loc ale=de_DE.UTF-8 0 0
//fritz.box/HDD /media/smb/HDD cifs users,auto,gid=users,file_mode=0664,dir_mode=0775, username=*****,password=**** 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Ich hoffe mir kann jemand helfen
ich habe ein kleines Problem mit Samba, das es total unbrauchbar macht.
Ich habe eine Festplatte (NTFS) an eine FritzBox 7270 angeschlossen und greife darauf via Samba zu (Wird automatisch gemountet über /etc/fstab). Es wird von 4 PCs benutzt: 2x OpenSUSE 11.2, 1x OpenSUSE 11.1 und 1x Windows XP
Nun kann ich problemlos Daten hochladen und mit dem selben PC herunterladen. Will ich sie aber mit einem anderen PC herunterladen sind sie beschädigt, nur von Windows hochgeladene Daten können fehlerfrei von anderen PCs heruntergeladen werden. Also folgende Wege funktionieren:
LINUX1 => LINUX1 | LINUX2 => LINUX2 | LINUX3 => LINUX3 | WINDOWS => WINDOWS | WINDOWS => LINUX(1-3)
Meine /etc/smb.conf sieht so aus:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2009-06-24
[global]
workgroup = Msheimnetz
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
security = user
usershare max shares = 100
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
netbios name = Morphy
passdb backend = smbpasswd
wins support = No
ldap suffix =
wins server =
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
## Share disabled by YaST
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# write list = root
Die /etc/fstab sieht so aus:
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part8 swap swap defaults 0 0
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part7 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part6 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part10 /tmp ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part9 /var ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part1 /windows/C ntfs-3g users,force,exec,gid=users,fmask=111,dmask=002,loc ale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J90P846468-part5 /windows/E ntfs-3g users,force,exec,gid=users,fmask=111,dmask=002,loc ale=de_DE.UTF-8 0 0
//fritz.box/HDD /media/smb/HDD cifs users,auto,gid=users,file_mode=0664,dir_mode=0775, username=*****,password=**** 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Ich hoffe mir kann jemand helfen