es gelingt mir nicht, auf eine Samba-Freigabe ohne Benutzeranmeldung, also anonym schreibend zuzugreifen. Wenn ich mich mit meinem Benutzer anmelde, habe ich alle Zugriffsrechte. Freigeben will ich eine Partition, die in der fstab so gemountet ist:
Code: Alles auswählen
/dev/sda2 /mnt/sda2_dir ext4 defaults 0 0
Code: Alles auswählen
[global]
workgroup = WORKGROUP
interfaces = 192.168.178.0/24 eth0
bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[datengrab]
comment = nur fuer LAN
path = /mnt/sda2_dir
browseable = yes
read only = no
guest ok = yes