firewall - NT_STATUS_ACCESS_DENIED Error in Samba share -
so, tried set public smb share samba on centos 7. now, have set up, , have headache. but, sweet victory. i'm posting here y'all don't need waste time. it's easy, need know hoops need jump through. i'll edit samba wiki.
the first problem wouldn't connect @ all, except locally:
remote connection (my linux desktop): ------- [root@my-desktop ~]# smbclient //sambaserver/publicdocs -n error connecting 192.168.100.97 (no route host) connection cgybkp01 failed (error nt_status_host_unreachable)
on windows 8, using windows explorer, after typing "\\sambaserver" address bar, progress bar wait, wait, wait, time out. error message was:
remote connection (my windows 8 desktop): windows cannot access \\sambaserver check spelling of name. otherwise, there might problem network. try identify , resolve network problems, click diagnose.
this ended being problem firewalld. unblock samba, needed add line /etc/firewalld/zones/public.xml :
<service name="samba"/>
perfect, can connect!
but, mounting nfs share, had 1 more issue, selinux. now, when attempt connect smbclient...
smbclient //sambaserver/publicdocs -n
i can connect, when try ls, error: "nt_status_access_denied" in centos 7. so, how connect?
the first thing recommended try file permissions. if you're not familiar file permissions in linux, i'd recommend trying first. me, didn't work, because selinux blocking me.
to see of selinux options samba, type:
getsebool -a | grep samba getsebool -a | grep smb
the 1 needed change samba_share_nfs, because sharing nfs mounted directory:
setsebool -p samba_share_nfs on
centos maintains list of these booleans here.
Comments
Post a Comment