I don't get a public samba share working. This is really giving me some headache. I'm trying to have a private share, that authenticates with a password for specific user (this part is working fine) and a public share, that everyone in my network can access and write to. But I can't mount it. I'm not getting a password prompt but also no access to it. What I'm doing wrong here?
testparm
is giving me following output:
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix extensions = No
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
[Nas]
create mask = 0600
directory mask = 0700
path = /mnt/nas/nas
read only = No
valid users = myuser
wide links = Yes
[Home]
create mask = 0777
guest ok = Yes
path = /mnt/nas/share
read only = No
In Linux I try following command to access the share:
sudo mount -v -t cifs -o guest //my.nas.server/home /mnt/share/
but it fails because of
mount error(13): Permission denied
With windows no luck either.
Update:
The output of:
ls -al /mnt/nas
drwxrwx--- 5 myuser myuser 4096 Sep 13 2021 ./
drwxr-xr-x 3 root root 4096 Jun 9 2022 ../
drwxrwx--- 16 myuser myuser 4096 Jan 23 15:58 nas/
drwxrwxrwx 3 nobody nogroup 4096 Jan 23 16:52 share/