First, on Debian/Ubuntu, run:
apt install samba. Then edit
/etc/
samba/smb.conf and make sure it looks like this in the following sections (you probably have to add the second one). Be sure you're behind a firewall!!!
Code:
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = IncrediblePBX
local master = no
domain master = no
preferred master = no
password server = None
guest ok = no
security = user
dns proxy = no
encrypt passwords = True
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/log.%m
hosts allow = 192.168. 10. 127.0. lo
hosts deny = 0.0.0.0/0
interfaces = eth0 lo wlan0
bind interfaces only = yes
#======================= Share Definitions =======================
[incrediblepbx]
path = /
guest ok = no
writable = yes
create mask = 0777
valid users = root
Then our usual setup instructions should work:
Activating SAMBA for Windows Networking. SAMBA is included for transparent access using the Windows Networking Protocol from PCs, Macs, and other Linux machines. As delivered, SAMBA is deactivated. For obvious reasons, we recommend you never activate root login access to SAMBA without a very secure password. If you wish to enable SAMBA on your server, here are the steps while logged in as root:
- 1. Set SAMBA password for user root: smbpasswd -a root
- 2. Change Windows workgroup from WORKGROUP, if needed: nano -w /etc/samba/smb.conf
- 3. Manually start SAMBA from command prompt: systemctl start smbd
- 4. Configure for SAMBA start on boot: systemctl enable smbd
- 4. Log in to SAMBA share as root with your root password