0

I am trying to setup a Samba file sharing server in Centos 8

I am following the tutorial here: https://www.linuxtechi.com/install-configure-samba-centos-8/

The first half, creating an annonymous share (not secured) worked, as expected. There were some problems in the beginning but using hints from here it was ultimately fixed.

I then tried making a secure server and ran into problems. The few things I did different from the linked tutorial when making a secure server are:

1) At the point where it adds a secure group

$ sudo groupadd secure_group  

I used a group name of secure_group_smb. I use this same group name in the smb.conf file later

2) At the point where the tutorial adds a user for samba server

sudo useradd -g secure_group linuxuser  

I used username (my existing CentOS administrator user) instead of linuxuser (a new user, which is what I think the tutorial is suggesting to do)

I did everything else as instructed there, but when I tried to connect to the CentOS machine from Windows, I got the "Do not have permission to access" error message.

enter image description here

After googling around for a while I tried a bunch of stuff and I still got the same error. So I deleted all the shared folders I created in /srv/samba, I deleted secure_group_smb using sudo groupdel secure_group_smb, and started over following the instructions in the tutorial linked earlier. However, now I cannot even get the first part to work, that is, getting an anonymous share. I am still getting the same "Do not have permission to access" error in Windows when I try to connect it to the linux machine.

What is going on here? How can I find out what exactly is it that is blocking me from connecting to the linux computer? Is there a way to completely wipe everything I did related to samba and start over fresh in CentOS?

user13267
  • 189

0 Answers0