TRY THIS Get Samba working with Incredible PBX

markieb

Active Member
Joined
Feb 19, 2009
Messages
165
Reaction score
51
Hi everyone,
Just done a new fresh FULL install of IPBX 13.2 from the most recent ISO.
Please can someone tell me how I get Samba working for full access like I have on my existing PIAF.

With no configure-samba command anymore what is the Ward approved way of doing this?

:)
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
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
 
Last edited:

dicko

Still learning but earning
Joined
Oct 30, 2015
Messages
1,633
Reaction score
842
I might suggest that presenting your root filesystem '/' to CIFS/windows as your linux root user might be a little "wreckless", think about it . . .
 
Last edited:

markieb

Active Member
Joined
Feb 19, 2009
Messages
165
Reaction score
51
Thanks Ward, I'll give it a go :)
Just past Pumpkin time here so it'll have to wait till tomorrow.
 

markieb

Active Member
Joined
Feb 19, 2009
Messages
165
Reaction score
51
I might suggest that presenting your root filesystem '/' to CIFS/windows as your linux root user might be a little "wreckless", think about it . . .
Wreckless if it was open to the internet or if there were untrusted users on my network. Neither apply to my setup, but thanks for your input :)
 

dicko

Still learning but earning
Joined
Oct 30, 2015
Messages
1,633
Reaction score
842
I don't believe that many people believe that Windows of any flavor can be trusted either in a lan or a wan situation., it is not the users, it is the OS :) be way more restrictive on what you share IMHO.
 
Last edited:

TheGreyElf

New Member
Joined
Oct 19, 2007
Messages
11
Reaction score
1
If you find that you can not drill down or write to subdirectories try adding the following to the end of the
section
Code:
wide links = yes
unix extensions = no

Tracy
 

TheGreyElf

New Member
Joined
Oct 19, 2007
Messages
11
Reaction score
1
Ward,

3. Manually start SAMBA from command prompt: service samba start

/etc/init.d/
on my two Incredible PBX 13.2 (lean and mean) installs do not contain a samba to start but do contain smb which works. FYI, I've always used smb to start/stop/restart Samba.

Just an FYI,

Tracy
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top