Score:0

My CentOS smb share was connected but no file can be seen

ph flag

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?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.