CentOS 7 CIFS/Samba documentation
CentOS 7 CIFS/Samba documentation
I installed CentOS 7 on my file server, with a colleague assisting. It’s been three days of testing various solutions to get Windows to recognize the share and grant access. The issue remains unresolved. If anyone has useful instructions for setting up Samba or CIFS, that would be helpful. Most resources I found are outdated or irrelevant—like separate sections for guest shares that no longer exist. I also attempted this myself, but on my Windows machine it only worked on CentOS. I’m only looking to enable file sharing without a password, since the current setup is frustrating. I can see the folder from CentOS, but opening it on Windows shows permission restrictions even though guest access is enabled. The folder settings and share configuration are correct, but uploading Samba configs would be appreciated if needed. Thanks for any guidance!
The samba share was made accessible for reading on the host. The directory listing shows detailed permissions, ownership, and file information.
ls: can't reach /samba/ – no such file or directory found. This is my first time using Linux, so please be careful. I think something might be wrong, maybe I misconfigured it? I enabled both SNAP and SMB, also added Samba to the firewall and reloaded it. Just wanted to note that.
Sure, just check the directory you set up the Samba share in and run `ls -la`. Also, did you review the CentOS documentation?
Sorry for the extended wait. It was the July 4th weekend, and I’ve been enjoying fireworks around here. The correct folder for your command is user@localhost ~]$ sudo ls -la /etc/samba. Here’s what I see:
- . (directory) – permissions: drwxr-xr-x
- .drwxr-xr-x – root directory
- lmhosts – readable by root
- smb.conf – also present, but not for CentOS 5
I checked the admin section and couldn’t locate the file. It seems to be missing or misconfigured.
/etc contains configuration files, which reflects what appears in your output. It doesn’t include the directories you’re sharing, so it shouldn’t. What does /etc/smb.conf look like? There should be minimal variation in settings across different operating systems—guidelines for Ubuntu should still apply. For guest access, you’d typically set guest ok to yes and enable guest-only mode.
it turned out selinix caused issues, I disabled it temporarily and it functioned fine. everything worked as expected—just needed a fix. I had full guest access with read permissions enabled, so it was all set.