Samba。文件夹访问问题

Samba。文件夹访问问题

Folder1 在本地网络上具有访客访问权限,而 Folder2 没有。文件夹的创建原理相同,只是磁盘上的位置和名称不同。可能是什么问题?

sudo nano /etc/samba/smb.conf

1.

[Folder1]
path = /home/user/1
public = yes
guest only = yes
writable = yes
force create mode = 0666
force directory mode = 0777
browseable = yes

sudo mkdir /home/user/1
sudo chmod -R ugo+w /home/user/1
sudo systemctl restart smbd
[Folder2]
path = /home/user/2
public = yes
guest only = yes
writable = yes
force create mode = 0666
force directory mode = 0777
browseable = yes

sudo mkdir /home/user/2
sudo chmod -R ugo+w /home/user/2
sudo systemctl restart smbd

更新

> ls -ld /home/?
drwxrwxrwx 2 root root 4096 Mar 15  2024 /home/1
drwxrwxrwx 2 root root 4096 Mar 15  2024 /home/2

> ls -l /home/?
>/home/1:
total 0
>/home/2:
total 0

相关内容