Description of problem:
I cannot share a folder in gnome.
I right click on the Videos folder / properties / share /shared
I got a window that says "Error while running /usr/sbin/fileshareset
Using Terminal y ran the command fileshareset --add /home/user/Videos
I got error:
Error: Can´t find samba init script
To be honest, I have never been able to share a mageia folder with windows. I have tried the Mageia Control Center option to share samba folders and even followed instructions on youtube to manual configure /etc/smb.conf
I noticed the error at boot that says samba daemon not started.
I installed mageia with gnome for that specific reason *Folder Sharing*, on plasma is even worst.
Please help.. I don´t wanna use fedora or ubuntu.... :-(
Did you check our wiki?
Do you already manage to share those directories?
If so, what did you need to do to get it to work?
(In reply to sturmvogel from comment #1)
> Did you check our wiki?
ZekeMX wants his machine to act as Samba server, isn't that page only about setting up a client, or do I overlook something?
It's been a long time, but in the past I've used mcc/network/sharing/
Share drives and directories with Windows (SMB) systems
to set up a samba server.
Is this still an issue? If so, we may have to put it in ERRATA for Mageia 9.
(In reply to Lewis Smith from comment #4)
> Is this still an issue? If so, we may have to put it in ERRATA for Mageia 9.
Sorry for the long delay on the response Lewis
Yes this is still an issue, It doesn´t work out of the box.
Install samba as well as samba-usershares to add the share folder to dolphin
Right click on a folder like your Videos folder and choose share, I got the next messageL
This folder cant´be shared because ´/var/lib/samba/usershares´ has its group owner inapropiately set to "usershares", wich is not allowed.
This error is caused by your distribution not setting up Samba share propertly, You can fix it yourself by chaning that folder´s group owner to "sambashares" and making yourself a member of that group. Then restart the system.
I checked to see if the group usershares existed and it only appears after installing the package samba-usershares
What I did is that I renamed group usershares to sambashares using groupmod -n sambashares usershares, once this group was renamed samba-usershares works fine.
After this change I gor a screen to create Samba password.
I think this should be changed on the samba-usershares package.
Setting for errata (to evaluate)
Bug header said Gnome, but per descriptions this seem to be not tied to Gnome.
CC registered maintainer for Samba.
Gnome Folder Sharing not working =>
Samba Folder Sharing not workingCC:
Your comment 5 is very helpful, and thank you for your suggestion. It certainly looks like a package installation issue.
Assigning to Buchan who maintains Samba. Upped the importance because it is rather basic that Mageia should easily share filestore with Windows.
Please test next samba-4.17.8-2.mga9 and samba-usershares-4.17.8-2.mga9 update!
I think usershares should be installed bu default on all mageia 9 with plasma and have all foldersharing handy.
once usershares is installed I got the next message on a new fresh mageia 9 install.
This folder could not be shared because your user account does not have write permissions to /var/lib/shares/usershares
Once this is solved Mageia will be easy to share for new users.
For now, manual fix in Comment 5
Entered https://wiki.mageia.org/en/Mageia_9_Errata#Samba, pointing here.
> I cannot share a folder in gnome.
IMHO, this should be tested/fixed by the GNOME maintainer.
It is a GNOME-specific feature that doesn't work.
> I right click on the Videos folder / properties / share /shared
In what program? Is this nautilus?
I don't have a "share" button/tab in the directory properties dialog in Nautilus.
> I got a window that says "Error while running /usr/sbin/fileshareset
This script is provided by drakxtools-backend, if you want this feature to work, please re-assign to drakxtools.
> Using Terminal y ran the command fileshareset --add /home/user/Videos
> I got error:
> Error: Can´t find samba init script
... and doesn't seem to have been updated since the switch to systemd :-(
> To be honest, I have never been able to share a mageia folder with windows. I have tried the Mageia Control Center option to share samba folders and even followed instructions on youtube to manual configure /etc/smb.conf
The simplest case is just sharing your home directory, just (as root)
# smbpasswd -a username
Then you can access //computername/username with your Samba username and password.
Beyond that, you would need to edit /etc/samba/smb.conf to create a share (looking at some of the examples, or reading the smb.conf man page), and configure user permissions on the shared directories appropriately.
> I think usershares should be installed bu default on all mageia 9 with plasma and have all foldersharing handy.
This again has nothing to do with the samba package itself. If you think it is required for plasma, then re-assign this bug to the task-plasma package.
> This folder could not be shared because your user account does not have write permissions to /var/lib/shares/usershares
It would appear that you need to be a member of the sambashares group to use this feature.
Use the Mageia Control Center to add yourself to the sambashares group, log out, log it, and try it again.
I'm not sure what else can be done from the samba package itself.