Как в Linux Mint 20.1 установить и настроить сервер Samba
С помощью Samba можно организовать общий доступ к папке в локальной сети. Создать файловое хранилище (файловый сервер).
Установка:
apt install samba
После установки нужно настроить файл smb.conf.
sudo xed /etc/samba/smb.conf
В открывшемся файле находим раздел и меняемего так:
# Un-comment the following and create the profiles directory to store
# users profiles (see the «logon path» option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
[share]
comment = Users profiles
path = /home/mainspirit/share
guest ok = yes
browseable = yes
create mask = 0777
directory mask = 0777
read only = no
[share] — имя ресурса видимое по сети
comment = Users profiles
path — путь до папки где расположен ресурс guest ok — разрешаем сетевой доступ
browseable — разрешаем отображение папки
create mask — права на создание файлов для самбы
directory mask — права на создание папок для самбы
read only = no — разрешить запись
_________________________________________________________________________
Перезапуск службы:
systemctl restart smbd