Configure a Samba Share Without Password on Debian
- Last updated: Apr 12, 2025
Intro
This guide explains how to set up a Samba server on Debian without authentication, allowing public access to shared folders.
Configuration
- OS: Debian GNU/Linux 10 (buster)
- samba: 4.9.5
Installation
root@host:~# apt-get update && apt-get install samba
Configuring Samba
- Create a shared folder:
root@host:~# mkdir /share
root@host:~# chown -R nobody:nogroup /share/
root@host:~# chmod -R 777 /share/
- Edit the
/etc/samba/smb.conf
file:
[global]
workgroup = WORKGROUP
server string = serv01
security = user
map to guest = bad user
[share]
browseable = yes
path = /share
read only = no
guest ok = yes
create mask = 777
- Check the configuration and restart the Samba services:
root@host:~# testparm
root@host:~# systemctl restart smbd; systemctl restart nmbd