I was not able to share my folders within network sometime back.
After searching and modifying configuration file my problem got resolved.
Problem:Unable to share Ubuntu folders
Message:net usershare' returned error 255: net usershare add: cannot share path /opt/foldingathome as we are restricted to only sharing directories we own.
Ask the administrator to add the line "usershare owner only = False"
to the [global] section of the smb.conf to allow this.
- Type the following in console
- $ sudo vi /etc/samba/smb.conf
- usershare owner only = False
- sudo service samba restart
Please send your feedback and comments to email@example.com