I setup samba share on Amalinux V 9.2
I can share the primary hard drive share point named “public” without any problem, but I cannot share the second hard drive share point named “public-2”.
smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server %v
client min protocol = SMB3
netbios name = CAMPC
security = user
map to guest = bad user
dns proxy = no
[public]
path = /srv/samba/shared
browsable =yes
writable = yes
guest ok = yes
read only = no
[public-2]
path = /mnt/sda/shared
browsable =yes
writable = yes
guest ok = yes
read only = no
==================
ls -l /
drwxr-xr-x. 3 root root 17 Jul 7 13:32 mnt
ls -l /mnt
drwxrwxrwx. 5 root root 4096 Jul 10 13:10 sda
ls -l /mnt/sda
drwxrwx—. 2 root ipcam 4096 Jul 10 12:23 private-shared
drwxr-xr-x. 2 root root 16384 Jul 8 19:37 lost+found
drwxrwxrwx. 2 nobody nobody 4096 Jul 10 13:10 shared
I am trying to figure out what is wrong. Can someone help me find the mistake?
Thank you.