Set up a file server on Ubuntu 20.04 using Samba

Set up a file server on Ubuntu that can be connected with a guest account using Samba.

environment

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

1. Install samba

Install Samba with ʻapt install`

$ sudo apt install samba

version 4.11 has been installed.

$ samba -V
Version 4.11.6-Ubuntu

2. Create a shared directory

Create a directory for sharing anywhere.

$ cd /home
$ mkdir share
$ chmod 777 share

3. samba server settings

$ 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

4. Start the server

$ sudo service smbd start

5. Autostart settings

Set automatic startup if necessary.

$ sudo sytemctl enable smbd

5. Connection from mac

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

Set up a file server on Ubuntu 20.04 using Samba
Set up a file server using samba on ZeroPi of Friendly Arm [Purchased Items]
Set up a file server using samba on ZeroPi of Friendly Arm [Personal import]
Set up a Samba server with Docker
Set up a mail server using Twisted
Set up Python 3.4 on Ubuntu
Set up a simple local server on your Mac
Set up a free server on AWS in 30 minutes
[Part 1] Let's set up a Minecraft server on Linux
Using a serial console on Ubuntu 20.04
Linux file server construction (Ubuntu & Samba)
Build a Samba server on Arch Linux
Set up Ubuntu as a Linux cheat sheet and https server
Set up a node to do MNIST on ROS using Tensorflow
Set up a local web server in 30 seconds using python 3's http.server
Set up a simple HTTPS server in Python 3
Set up a simple HTTPS server with asyncio
Set up a test SMTP server in Python.
Set up a UDP server in C language
Set up a local server with Go-File download-
How to set up a local development server
Set up a simple SMTP server in Python
Set up a Python development environment on Marvericks
How to set up a Python environment using pyenv
Set up a Minecraft resource (Spigot) server via docker (2)
Set up a Minecraft resource (Spigot) server via docker
[Vagrant] Set up a simple API server with python
Set up python and machine learning libraries on Ubuntu
I want to set up a mock server for python-flask in seconds using swagger-codegen.
Set matplotlib font on ubuntu
Set up Polyglot on Windows
SSH connection to a private server using a bastion server on EC2
Set up a web server with CentOS7 + Anaconda + Django + Apache
Set up a Google Cloud service account key on heroku
Setting up a CentOS 7 server hosted on Alibaba Cloud ECS
Until building a Python development environment using pyenv on Ubuntu 20.04
Introducing Python using pyenv on Ubuntu 20.04
Preparing python using vscode on ubuntu
Run a Linux server on GCP
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
Set up Python environment on CentOS
Run TensorFlow2 on a VPS server
Notes on using matplotlib on the server
Run Yocto on Ubuntu using QEMU.
What I stumbled upon when using CodeIgniter on a Linux server
Set up a VPN server on AWS so that you can make a VPN connection from your Linux laptop
Set up a yum repository server on CentOS7 system and refer to it locally and from other servers.
Send mail with mailx to a dummy SMTP server set up with python.
How to set up a jupyter notebook on ssh destination (AWS EC2)
Set up a server that processes multiple connections at the same time
Build a proxy server with nginx on multiple remote servers using Ansible
Build a Pypi cache server on QNAP
Easily build a DNS server using Twisted
Build a simple WebDAV server on Linux
Set swap space on Ubuntu on Raspberry Pi
Build a web server on your Chromebook
On Ubuntu Linux, set Tab to q
Run Jupyter notebook on a remote server
From nothing on Ubuntu 18.04 to setting up a Deep Learning environment in Tensor
On Linux (Ubuntu), tune the Trackpad and set the function to a three-finger swipe
CPU usage is 100% when using pygame on Ubuntu 16.04