I setup samba share on Amalinux V 9.2
The primary hard drive was shared OK, but we cannot share the second hard drive.
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
[private]
Path =/mnt/sda/private-shared
Valid users = @camgroup
Browseable = no
Writeable = yes
Guest ok = no
Read only = no
[public]
path = /mnt/sda/shared
browsable =yes
writable = yes
guest ok = yes
read only = no
[public-2]
path = /srv/samba/shared
browsable =yes
writable = yes
guest ok = yes
read only = no
======================
“public-2” on primary drive is working good
“public” share on second drive can not access
ls -l /mnt/sda
drwxrwx---. 2 root camgroup 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
======================
Please help what I’m doing wrong.
Thank you