I can't condivide my folders in the local network
Incomplete, Needs information, NormalPublic

Description

Giorgio Dramis wrote on 20. January 2015 03:58:

Package: samba

When I try to condvide my folders on the local network I received this error message:

«net usershare» ha restituito l'errore 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permesso negato
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share.

importbot added a subscriber: importbot.

Matthias Klumpp wrote on 20. January 2015 04:31:

What does the command groups return? Are you in the group sambashare?

Giorgio Dramis wrote on 22. January 2015 21:12:

Matthias Klumpp wrote:

What does the command groups return? Are you in the group sambashare?

No, I'm not.

Matthias Klumpp wrote on 22. January 2015 21:17:

Well, does adding you to the group (adduser <yourusername> sambashare) help?

Giorgio Dramis wrote on 22. January 2015 21:24:

Matthias Klumpp wrote:

Well, does adding you to the group (adduser <yourusername> sambashare) help?

Now I receive this error message:

«net usershare» ha restituito l'errore 255: net usershare add: failed to add share pubblici. Error was Operazione non permessa

Matthias Klumpp wrote on 22. January 2015 21:34:

Did you reboot your system before testing this?

Giorgio Dramis wrote on 22. January 2015 21:40:

Matthias Klumpp wrote:

Did you reboot your system before testing this?

Yes! XD

Matthias Klumpp wrote on 22. January 2015 21:59:

Okay... Well, I am no expert on SAMBA, unfortunately.
But can you maybe try these instructions to see if you can get it working somehow? To me, this looks like a configuration issue.

Giorgio Dramis wrote on 22. January 2015 22:14:

Matthias Klumpp wrote:

Okay... Well, I am no expert on SAMBA, unfortunately.
But can you maybe try these instructions to see if you can get it working somehow? To me, this looks like a configuration issue.

I'm sorry, but it didn't work. I'm sure that is a bug , because if I remember correctly I had the same problem with Ubuntu 8.4.

Matthias Klumpp wrote on 22. January 2015 22:40:

Giorgio Dramis wrote:

Matthias Klumpp wrote:
> Okay... Well, I am no expert on SAMBA, unfortunately.
> But can you maybe try these instructions to see if you can get it working somehow? To me, this looks like a configuration issue.

I'm sorry, but it didn't work. I'm sure that is a bug , because if I remember correctly I had the same problem with Ubuntu 8.4.

Do you maybe know how you solved it or how it was solved?
Can you check your system logs (the journal via journalctl and syslog) for any interesting entries concerning Samba shares or services?

je no wrote on 14. May 2015 16:56:

Giorgio Dramis wrote:

When I try to condvide my folders on the local network I received this error message:

«net usershare» ha restituito l'errore 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permesso negato
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share.

I guess you are not a registered samba user. It is necessary in case you want to share files from your userhome. Please do a sudo smbpasswd -a "yourusername" and set a password (I recommend the same like on tanglu to keep things easy) As an alternative you could install libpam-smbpass, which syncs registered pam-users with samba-users.
@Matthias Is it possible to add libpam-smbpass as dependency for samba server? I think the I-want-to-share-my-files-at-my-userhome use case is a common one. Maybe also every created user should be member of sambashare-group. That would reduce the obstacles for this use case a lot.

Salve

je no wrote on 14. May 2015 17:15:

edit: take care that the workgroup name im smb.conf match to the one on any other computer. Otherwise windows computers do not see your share.

Mon, Jul 13, 1:08 AM
This comment was removed by ximion.

· Mon, Jul 13, 1:11 AM

importbot changed the task status from "Open" to "Incomplete".Jul 28 2015, 11:29 AM