1 min read

setup samba on ubuntu

setup samba on ubuntu
Photo by Minh Pham / Unsplash

install samba

$ apt update
$ apt install samba

assign ubuntu user a password for samba

$ smbpasswd -a USERNAME

config samba and add diretory

# /etc/samba/smb.conf

[data]
comment = Samba Share on Ubuntu
path = /data

read only = no
guest ok = no

browseable = yes
writeable = yes

create mask = 0644
directory mask = 0755
force user = root

restart samba service

$ service smbd restart

# optional
$ ufw allow samba

mount hfs+

$ apt update
$ apt install hfsplus
$ mount -t hfsplus -o force,rw /dev/sdx# /media/mntpoint

Install and Configure Samba | Ubuntu
Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.