It seems you are confused about Share and Publish. A Shared folder is only accessible to users in the share-to list.
If you want to make a folder accessible by anybody (anonymous user), then you need to publish a folder instead of share.
A published folder (and files in it) is accessible as via the HTTP publish URL(s). It can also be accessed as FTP URL:
No logon is required.