General support questions
Post Reply
Posts: 1
Joined: 2014/07/16 22:04:26


Post by alexb » 2014/07/16 22:07:08

I ran Samba in Centos 7 but I could not connect to any folder shared or iven if i put the ip i got no response

selinux is disabled as well as iptables..

any idea about it?

thank you.

Posts: 1
Joined: 2014/07/17 01:08:21

Re: Samba

Post by dylan.lindgen » 2014/07/17 01:18:37

try the below maybe?

Code: Select all

firewall-cmd --permanent --add-service=samba

User avatar
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: Samba

Post by vonskippy » 2014/07/17 02:11:24


Are we supposed to guess how you set both your Samba server and your window clients?
For the 2.5^15th time :: Better Details = Better Answers

Posts: 11
Joined: 2014/07/19 03:09:34

Re: Samba

Post by sirmonkey » 2014/07/21 23:55:29

I'm haveing similar problems....
firewalld disabled
minimual centos 7 install

(tested on 3 machines)

smbpasswd -a
chmod -R 777

windows can login and see shares but not access anything

Code: Select all

[root@boxA8 samba]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[glusterfs]"
Loaded services file OK.
Press enter to see a dump of your service definitions

        netbios name = MYSERVER
        server string = Samba Server Version %v
        log file = /var/log/samba/log.%m
        max log size = 50
        idmap config * : backend = tdb

        comment = Home Directories
        read only = No

        comment = testing 123
        path = /mnt/glusterfs
        read only = No
        guest ok = Yes

Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Samba

Post by gerald_clark » 2014/07/21 23:59:24

smbpasswd -a
chmod -R 777

Neither of which will do anything.

Posts: 11
Joined: 2014/07/19 03:09:34

Re: Samba

Post by sirmonkey » 2014/07/22 01:07:01

ubuntu dosen't like to samba share unless you 755 or 777 the directory.

smbpasswd -a <username>
got it so that i could atleast login and see the folder shares

I did just figure out that when my glusterfs isn't mounted i can see in the folder, and once it's mounted can't get in agian.

I can see and play in the folder when i ssh in tho.

Posts: 5
Joined: 2014/07/22 06:12:26

Re: Samba

Post by whale » 2014/07/22 07:13:05

It's hard to figure out what is the root cause with fragment info.
Assume iptables off,selinux disabled,smbuser1 is a valid user in local system and samba user.
part of smb.conf

Code: Select all

security = user

  comment = test
  path = /mnt/share
  browsable = yes
  writable = yes
  writelist = smbuser1 #Account have write permission
And /mnt/share still needs the right permission for smbuser1.
Or you can just attach permission for one user,see below

Code: Select all

setfacl -m u:smbuser1:rwx /mnt/share
Then start smb and nmb service.

Post Reply

Return to “CentOS 7 - General Support”