dewildschwein500
Meister
- Registriert
- 3. Dezember 2017
- Beiträge
- 894
- Reaktionspunkte
- 697
- Punkte
- 153
Hi @HarryHase,
hier mal eine Beispiel-Konfiguration für eine Freigabe, die jeder nutzen kann .. ohne Login.
hier mal eine Beispiel-Konfiguration für eine Freigabe, die jeder nutzen kann .. ohne Login.
Bash:
adduser guest --home=/data --shell=/bin/false --disabled-password
smbpasswd -an guest
mkdir -p /data
chmod -R 0777 /data
chown -R guest.guest /data
# /etc/samba/smb.conf
[global]
workgroup = arbeitsgruppe
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
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
invalid users = root
guest account = guest
[data]
comment = data
read only = no
writable = yes
locking = no
path = /data
guest ok = yes
force user = guest
Zuletzt bearbeitet von einem Moderator: