Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ How to install and configure samba on ubuntu 16.04 LTS?
Added by sonik on 20-06-2018 and keywords: simple, samba, configuration, linux, ubuntu [ Print Article ]
How to install and configure samba on ubuntu 16.04 LTS?

sudo apt-get install samba

Add user for samba
sudo smbpasswd -a sonik

Make a directory to share:
mkdir /home/sonik/sarg
mkdir /home/sonik/public

Edit the config file:
pico /etc/samba/smb.conf

Add at the bottom of the file the new directory that we created:
# This share allows only authenticated users
path = /home/sonik/sarg
available = yes
valid users = sonik
read only = no
browseable = yes
public = yes
writable = yes

# This share allows anonymous (guest) access
# without authentication!
path = /home/sonik/public
read only = no
guest ok = yes

Restart samba:
sudo /etc/init.d/samba restart

Restart samba ubuntu 18.04
sudo systemctl restart smbd

Test samba config:
sudo testparm

How to check samba version?

@All rights reserved with Copyright 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]