Samba

by msypniewski511 in Linux

An old rock in the desert

Samba as a file server

Install Samba

sudo apt install samba

Configure Samba as a file server

sudo vi /etc/samba/smb.conf
workgroup = EXAMPLE
[share]
    comment = Ubuntu File Server Share
    path = /srv/samba/share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755

Create the directory

sudo mkdir -p /srv/samba/share
sudo chown nobody:nogroup /srv/samba/share/

Enable the new configuration

sudo systemctl restart smbd.service nmbd.service

0 Replies


Leave a replay

To replay you need to login. Don't have an account? Sign up for one.