Symptoms:
- Client cannot reach the Samba server
- Connection timeouts
Solutions:
- Check if ports 139 and 445 are accessible
- Verify firewall settings on host and client
- Ensure the container is running:
docker ps - Test network connectivity:
telnet <server-ip> 445
Symptoms:
- Cannot read/write files
- Access denied errors
Solutions:
- Check UID/GID environment variables match your host user
- Verify user exists in
users.conf - Check file permissions on host storage directory
- Ensure share configuration allows write access
Symptoms:
- Invalid username/password errors
- Cannot log in to shares
Solutions:
- Verify username/password in
users.conf - Check if user was created properly:
docker exec samba-server pdbedit -L - Restart container after user changes
- Clear client credential cache
docker-compose logs -f sambadocker exec samba-server smbstatusdocker exec samba-server testparmRun with verbose logging:
docker-compose down
docker-compose up- Change default passwords in
users.conf - Use strong passwords for all accounts
- Consider using firewall rules to restrict access
- Regularly update the container image
- Monitor access logs for unusual activity
- Use VPN for remote access when possible