SAMBA Configuration Help Please

Issues related to configuring your network
Post Reply
p23rodriguez
Posts: 5
Joined: 2017/10/20 12:51:46

SAMBA Configuration Help Please

Post by p23rodriguez » 2017/10/20 14:33:26

Hey all,

I'm trying to set up CentOS 7 as a SAMBA server to serve media files (NTFS formatted disks) to my home theater PC. I can't even see the share on my home network when using the computers with the allowable IPs specified in the configuration file. I'm using WebMin to configure the server. When I try to set share level permissions, the SMB service won't start. The only time the service works is when I set user level permissions. I did some searching, but I couldn't find an answer. I'm sure I'm overlooking something that is trivial. Thank you so much!
smb.txt
(791 Bytes) Downloaded 109 times

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SAMBA Configuration Help Please

Post by TrevorH » 2017/10/20 14:35:32

Did you also allow the access through your firewall? You'll either be using firewalld or iptables-services and depending on which you'll need to use firewall-cmd or iptables to add some rules to allow samba access.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

p23rodriguez
Posts: 5
Joined: 2017/10/20 12:51:46

Re: SAMBA Configuration Help Please

Post by p23rodriguez » 2017/10/20 16:06:27

Thank you for the quick response. I'll go ahead and check that out now. Thank you.

p23rodriguez
Posts: 5
Joined: 2017/10/20 12:51:46

Re: SAMBA Configuration Help Please

Post by p23rodriguez » 2017/10/21 22:08:19

I've added rules for samba and samba-client using Webmin and in firewalld. I've also opened up ports 137-139, 445, 9090, 10000, and 22. The 137 and 138 ports don't show up when I ran Zenmap port scanner on the SAMBA server. I still can't get the server to show up on my Windows 10 Homegroup. I don't really know what is going on with this. I'm just getting back into Linux with this distribution since I thought it would be fairly straightforward, but I've never set up a SAMBA server. Thanks for any advice you guys can give me.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SAMBA Configuration Help Please

Post by TrevorH » 2017/10/21 22:44:09

Did you run firewall-cmd -add-service=samba --permanent and then again without --permanent?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

p23rodriguez
Posts: 5
Joined: 2017/10/20 12:51:46

Re: SAMBA Configuration Help Please

Post by p23rodriguez » 2017/10/21 23:17:28

I just did. I got a "firewall-cmd: error: unrecognized arguments: -add-server=samba". I'm still researching this stuff and have followed what guides I can find. I just wanted anyone helping me to know that I am working on helping myself as well. Thank you!

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SAMBA Configuration Help Please

Post by TrevorH » 2017/10/21 23:45:38

Sorry that was a typo, my fingers were apparently in automatic. Should have been --add-service not --add-server
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

p23rodriguez
Posts: 5
Joined: 2017/10/20 12:51:46

Re: SAMBA Configuration Help Please

Post by p23rodriguez » 2017/10/22 15:42:15

I found another good tutorial on using Webmin for this. I'm actually able to see my share now on my Windows 10 machine. Now I just need to get it to mount the NTFS partition and we are golden.

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

Re: SAMBA Configuration Help Please

Post by hunter86_bg » 2017/10/23 20:52:33

For NTFS support you need a package from the epel repository.
The package name is "ntfs-3g".

Post Reply