this is /etc/passwd file
root:x:0:0:root:/root:/bin/bash
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
nobody:*:65534:65534:nobody:/var:/bin/false
ntp:x:123:123:ntp:/var/run/ntp:/bin/false
dnsmasq:x:453:453:dnsmasq:/var/run/dnsmasq:/bin/false
logd:x:514:514:logd:/var/run/logd:/bin/false
ubus:x:81:81:ubus:/var/run/ubus:/bin/false
hasan:*:1000:65534:hasan:/var:/bin/false
sing-box:x:5566:5566:sing-box:/var/run/sing-box:/bin/false
public:*:1000:65534:public:/var:/bin/false
this is /etc/samba/smb.conf file
[global]
netbios name = OpenWrt
interfaces = br-lan
server string = Samba on OpenWRT
unix charset = UTF-8
workgroup = WORKGROUP
[usb]
path = /mnt/sda2
valid users = public
create mask = 0666
directory mask = 0777
read only = no
guest ok = no
[personal]
path = /mnt/sda1
valid users = hasan
create mask = 0666
directory mask = 0777
read only = no
guest ok = no
user hasan is able to access usb and user public is able to access personal. i want that user hasan will have only access to personal and user public to usb
where is the problem why they can acces both ? please somebody help me.