December 3

Samba on Ubuntu/Debian

Updating software and installing Samba:

apt update; apt upgrade -y; apt install samba -y
Time to add the Samba user. It should be a real user in your system.
smbpasswd -a user_name
Create a directory to be shared
mkdir -pv /home/user_name/folder_name
Make a backup copy of the smb.conf file
cp -pv /etc/samba/smb.conf /etc/samba/smb.conf.bak
Update the /etc/samba/smb.conf file
nano /etc/samba/smb.conf
[folder_name]
path = /home/user_name/folder_name
valid users = user_name
read only = no

Restart the samba:
service smbd restart


Copyright 2021. All rights reserved.

Posted 3 December 2018 by admin in category "simple memo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.