Set up a file server on Ubuntu that can be connected with a guest account using Samba.
I used Ubuntu 20.04.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Install Samba with ʻapt install`
$ sudo apt install samba
version 4.11 has been installed.
$ samba -V
Version 4.11.6-Ubuntu
Create a directory for sharing anywhere.
$ cd /home
$ mkdir share
$ chmod 777 share
$ sudo vi /etc/samba/smb.conf
I'm not sure about this area, so I set it by referring to the article on the net.
[global]
unix charset = UTF-8
dos charset = CEP932
display charset = UTF-8
bind interface only = yes
map to guest = Bad User
[public]
comment = public
path = /home/share
public = yes
writable = yes
printable = no
create mode = 0777
directory mode = 0777
$ sudo service smbd start
Set automatic startup if necessary.
$ sudo sytemctl enable smbd
Open a connection to the server in Finder, or Cmd + k
to the server address
smb://<ip address or hostnanme>
You can connect by typing.
Recommended Posts