I installed a smbserver on my CentOS 7. And I used an embedded Linux terminal to mount the shared directory to local /mnt/smb.
mount -t cifs //192.168.2.222/jason /mnt/smb -o username=jason,password=0801,iocharset=utf8
And I see on the CentOS 7 machine that it was connected via command smbstatus.
Samba version 4.10.16
PID Username Group Machine Protocol Version Encryption Signing
---------------------------------------------
1588 jason jason 192.168.2.40 (ipv4:192.168.2.40:35413) NT1 - -
Service pid Machine Connected at Encryption Signing
---------------------------------------------
jason 1588 192.168.2.40 Wed Dec 14 08:56:51 AM 2022 CST - -
But I can't see any file I created under the directory jason on the /mnt/smb/ of the embedded Linux terminal. Why?
The part of /etc/samba/smb.conf is the following:
[jason]
path = /samba/jason
browseable = yes
writable = yes
read only = no
force create mode = 0660
force directory mode = 2770
valid users = jason @sadmin
And when I try to create a file under /mnt/smb/, it shows "Permission denied".
And I have used the same command on the embedded Linux terminal to successfully implement smb file sharing to another Ubuntu smb server.
So what's wrong with my CentOS smb server configuration?