Troubleshooting Samba “Access Denied” Errors Between Windows and OpenSUSE

0
19
Asked By DisturbedGiraffe42 On

Hey everyone! I'm dealing with this frustrating "access denied" issue when trying to create files on a Samba shared folder between a Windows Server 2016 VM and OpenSUSE Tumbleweed on VMware Workstation Pro 17. I can access the shared folder without any problem, but I can't create or modify files from either the Windows or Linux sides. I've also checked permission settings but with no success. Here's a breakdown of what I've tried so far:
- Configured Samba to set explicit permissions (`force user`, `create mask = 0777`, etc.).
- Adjusted file system permissions in OpenSUSE (used `chmod 777` and changed ownership).
- Checked and cleared firewall rules to allow Samba traffic.
- Reinstalled Samba and kept everything up-to-date.
- Cleared Windows credentials and switched to Bridged mode in VMware for both VMs.
- Modified group policies in Windows to enable guest access.

**My setup:**
- **VMware Workstation Pro 17** as the host.
- **Bridged Mode** network settings (also tried NAT).
- OpenSUSE Tumbleweed (running Samba 4.22.0).
- Windows Server 2016 Standard.

IP assignments are as follows:
- OpenSUSE: `192.168.32.20`
- Windows Server: `192.168.32.1`

**Samba configuration (`smb.conf`):**
```
[LinuxShare]
path = /srv/linux_share
guest ok = No
writable = yes
valid users = contabilidad-22211635
force user = contabilidad-22211635
create mask = 0777
directory mask = 0777
```
**Error message on Windows:**
Error 0x800704F8: "The security policies deny access to unauthenticated guests".

**Samba logs show no errors, which is odd.**

Could anyone help me figure out what I might be missing in my configuration or steps I should take next? Thanks!

3 Answers

Answered By Clever_Raccoon29 On

It sounds like you've been through a lot already! That error code you're seeing usually means there are issues with guest access, suggesting that your current Samba settings aren't allowing unauthenticated access. Since you mentioned you can access the shared folder but not modify it, make sure you actually have write permissions on the directory. For Samba, typically you want both the directory and file permissions set to allow modifications. Also, check if you've set the permissions correctly in the Samba configuration including that the shared folder is configured to allow valid users!

Answered By ChillPineapple77 On

Just a thought, but sometimes these issues can also be due to VMware settings. If you've been switching between NAT and Bridged mode, ensure that both VMs are communicating properly over the network. Make sure they can ping each other without issues. Also, regarding the Samba logs not showing errors, make sure logging is set to a verbose level to catch any hidden errors in the system. You might want to check that out!

Answered By TechSage47 On

Have you tried adding `guest ok = yes` in your Samba config? Sometimes just allowing guest access can solve the problem, but be cautious with this approach. It may compromise security. If that doesn’t pan out, check that the permissions you’ve set in OpenSUSE are also carried through correctly. You’re on the right track already; just keep checking permissions on both the Samba configuration and the folder properties in OpenSUSE.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.