You are trying to share a folder from Standard User Account and you will get this error:
"'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permission denied
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share."
To fix this problem, you need to modify the file in /etc/group.
So, Login to your administrator account first, then open terminal, and type the command
Login again to your Standard User Account, then try to share a folder by Right-Click then select Properties.
In the properties window, navigate to Permission Tab and set the Group=sambashare; Access=Create and Delete Files. Set Others Access=Create and Delete Files.
In the Local Network Share, Checked all the check-boxes below:
That's All
"'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permission denied
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share."
To fix this problem, you need to modify the file in /etc/group.
So, Login to your administrator account first, then open terminal, and type the command
- sudo su and enter you admin password
- gedit /etc/group
- Find sambashare then add your standard user account there; (e.g sambashare:x:124:admin,<standard user account>).
- Save and Close the File.
- gedit /etc/samba/smb.conf
- Add this line on the Global Section, usershare owner only = false
- On the Share Definitions, set the create mask = 777 and directory mask = 777
- Save and Close the file.
- service samba restart.
Login again to your Standard User Account, then try to share a folder by Right-Click then select Properties.
In the properties window, navigate to Permission Tab and set the Group=sambashare; Access=Create and Delete Files. Set Others Access=Create and Delete Files.
In the Local Network Share, Checked all the check-boxes below:
- Share this folder
- Allow others to create and delete files in this folder
- Guest access (for people without a user account)
That's All
Comments
Post a Comment