Centos7 - Samba 4.6.7 shares question

Issues related to configuring your network
Post Reply
northpoint
Posts: 107
Joined: 2016/05/23 11:57:12

Centos7 - Samba 4.6.7 shares question

Post by northpoint » 2017/10/29 20:34:22

I have samba setup as a AD. I compiled from source as instructed by the wiki at samba for creating a AD. Everything is running fine except shares defined in the smb.conf file do not show up in windows 7. I have one share for testing - /mnt/data .

new view on windows lists:

Image

Code: Select all

/usr/local/samba/etc/smb.conf contents:

# Global parameters
[global]
	netbios name = SD2
	realm = SD.LOCAL
	workgroup = SD
	dns forwarder = 75.75.75.75
	server role = active directory domain controller
	idmap_ldb:use rfc2307 = yes

[netlogon]
	path = /usr/local/samba/var/locks/sysvol/sd.local/scripts
	read only = No

[sysvol]
	path = /usr/local/samba/var/locks/sysvol
	read only = No

[DATA]
path = /mnt/data
readonly = no
Perhaps I am misunderstanding something and looking for some education here.
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Centos7 - Samba 4.6.7 shares question

Post by hunter86_bg » 2017/11/02 21:51:15

What about adding

Code: Select all

browseable = yes

northpoint
Posts: 107
Joined: 2016/05/23 11:57:12

Re: Centos7 - Samba 4.6.7 shares question [SOLVED]

Post by northpoint » 2017/11/04 16:59:14

hunter86_bg wrote:What about adding

Code: Select all

browseable = yes
I apologize for missing your response to this. I did finally figure it out.

Samba running as a AD means you do not set permissions in the smb.conf file. The permissions are handled from the windows workstation connected to the AD with the appropriate credentials.

The only mention in the smb.conf for a share should be like this:

Code: Select all

[DATA]
path = /mnt/data
readonly = no
Of course if your not running samba as an AD then you would define permissions in the smb.conf file.

Thank you very much for taking the time to reply back. Just sorry I never got an email notice that you did :(

Northpoint
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

Post Reply