"net usershare" has returned error 255

Hi @Ma_N0

I found this information in the community, of course this doesn't solve the problem completely, what it does is to share the resource of your directory under the Public name whether it is called Documents, Images, Downloads or simply any other directory. As soon as you want to change the resource you shared it is simply rename it with the command:
net usershare add Public /home/$USER/Downloads : Everyone:F guest_ok=y

The original post is from user @apinunt in his help and support topic, which I leave a link to for your review: Sharing Public folders between computers over the network - #3 by apinunt

In any case, the topic is still open for anyone who has a complete answer to this problem.