Cant access my NAS share folder

Issues related to configuring your network
Post Reply
katana85
Posts: 13
Joined: 2016/02/18 03:59:15

Cant access my NAS share folder

Post by katana85 » 2021/05/12 09:20:52

Hello. I just want to open my share folder on my NAS but I cant see anything as per the attached picture. Note that this was working right away in Ubuntu and Fedora, not sure what is wrong here or if I miss something.

Please advice me and thank you.
Attachments
Share folder not showing (copy).png
Share folder not showing (copy).png (47.35 KiB) Viewed 968 times

BShT
Posts: 419
Joined: 2019/10/09 12:31:40

Re: Cant access my NAS share folder

Post by BShT » 2021/05/12 14:11:03

try to mount at console

be sure you have cifs installed

insert at [global] /etc/samba/smb.conf if you have a legacy NAS
client min protocol = NT1
ntlm auth = ntlmv1-permitted

User avatar
TrevorH
Forum Moderator
Posts: 30785
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cant access my NAS share folder

Post by TrevorH » 2021/05/12 14:16:08

If using firewalld then it almost certainly doesn't allow SMB packets through unless you open the right ports. Try e.g. firewall-cmd --add-service=samba-client and see if that works, if it does then run it again with --permanent.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

katana85
Posts: 13
Joined: 2016/02/18 03:59:15

Re: Cant access my NAS share folder

Post by katana85 » 2021/05/12 17:16:43

TrevorH wrote:
2021/05/12 14:16:08
If using firewalld then it almost certainly doesn't allow SMB packets through unless you open the right ports. Try e.g. firewall-cmd --add-service=samba-client and see if that works, if it does then run it again with --permanent.
I tried all of what you said but nothing works. Just to note:-

firewall-cmd --list-services
cockpit dhcpv6-client samba samba-client ssh

Please advice me.

BShT
Posts: 419
Joined: 2019/10/09 12:31:40

Re: Cant access my NAS share folder

Post by BShT » 2021/05/12 19:45:35

mount it at console

katana85
Posts: 13
Joined: 2016/02/18 03:59:15

Re: Cant access my NAS share folder

Post by katana85 » 2021/05/13 15:47:59

I didnt know the command for it. Please help me.

tunk
Posts: 987
Joined: 2017/02/22 15:08:17

Re: Cant access my NAS share folder

Post by tunk » 2021/05/13 17:40:00


leeuw
Posts: 18
Joined: 2020/10/17 21:58:25

Re: Cant access my NAS share folder

Post by leeuw » 2021/05/24 22:06:53

Just to check, is your selinux on?

Test this by giving this command:
sestatus

You will see something like this:
Image

If you use selinux, Add a selinux rule for samba:

sudo chcon -R -t samba_share_t /var/samba/public/

or

sudo semanage fcontext -a -t samba_share_t "/mnt/shared(/.*)?"

The second one will include all subfolders and files in the samba user home folder.
I would go for that one. Just change the /mnt/shared part to your directory location.

sources:
https://linuxconfig.org/install-samba-on-redhat-8

Post Reply

Return to “CentOS 8 - Networking Support”