Running net share shows anonymous login

Hi, Everyone.

Hope everyone is doing fine, I am trying to learn Samba in Ubuntu Server. I have ran “net share” command and when I do that it says “Anonymous login successful”

admin@samba:~$ net share
Password for [WORKGROUP\admin]:
Anonymous login successful
print$
IPC$

In the smb.conf, I have already configured “homes”

[homes]
        browseable = no
        comment = Home Directories
        create mask = 0700
        directory mask = 0700
        valid users = %S root

So my question is why I am logging in as anonymous rather than my current user “admin” and why doesn’t it show my homes folder for admin? How can I make it show “admin” when I ran “net share”?

Please let me know if you need more information to help me answer those questions, I am using a lab machine, I can provide what information you needed just to make this work.