Thunar-shares-plugin issue ...

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
CharlesV
Global Moderator
Posts: 7357
Joined: Sun Jul 07, 2019 5:11 pm

Thunar-shares-plugin issue ...

#1 Post by CharlesV »

There does appear to be an issue with thunar-shares-plugin and an issue in code. The error that thunar throws is "‘net usershare’ error 255"

I have verified that this error happens on MX23.4 and is outlined in these places as 'the issue'...

https://forum.xfce.org/viewtopic.php?id=16099
https://forum.manjaro.org/t/thunar-shar ... 5/93591/16

it appears that something needs to be changed in the shares.c file

- argv[1] = "-l";
+ argv[1] = "--long";

This bug shows as resolved, however I am still seeing it. I cannot find an MX code set for thunar to check that, anyone have any insight to this one ?

Thank you
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
m_pav
Developer
Posts: 1782
Joined: Sun Aug 06, 2006 3:02 pm

Re: Thunar-shares-plugin issue ...

#2 Post by m_pav »

The shares.c file looks like the type found in the source code.

Seems the folk at Manjaro found a way to patch it.
https://forum.manjaro.org/t/thunar-shar ... 5/93591/10

and Gitlab
https://gitlab.xfce.org/thunar-plugins/ ... /issues/16
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
FullScale4Me
Posts: 1079
Joined: Fri Jan 08, 2021 11:30 pm

Re: Thunar-shares-plugin issue ...

#3 Post by FullScale4Me »

I've seen fragments of reports on this. Some were attributed to spaces in share names and others were related to shares in /media sub-folders. The latter lacked user ownership and/or execute permission bit.

Also from my Samba notes archive last saved March 6, 2024.
Morbius1 wrote:net usershare' returned error 255

https://ubuntuforums.org/showthread.php ... st11706928

February 21st, 2012 #10
Morbius1
Ubuntu addict and loving it
Join Date Dec 2009
Beans 6,765

Re: Another "'net usershare' returned error 255:"

We are talking about 2 entirely different ways to create a samba share:

Classic Shares have share definitions in smb.conf.

Usershares ( aka nautilus-shares ) are created from Nautilus and have share definitions in /var/lib/samba/usershares.

BTW, I can reproduce this error in seconds:

'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. Invalid parameter.

by changing one parameter from true to

encrypt passwords = false

That is what you had in your old smb.conf
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

User avatar
CharlesV
Global Moderator
Posts: 7357
Joined: Sun Jul 07, 2019 5:11 pm

Re: Thunar-shares-plugin issue ...

#4 Post by CharlesV »

FullScale4Me wrote: Thu Oct 17, 2024 6:29 pm I've seen fragments of reports on this. Some were attributed to spaces in share names and others were related to shares in /media sub-folders. The latter lacked user ownership and/or execute permission bit.

Also from my Samba notes archive last saved March 6, 2024.
Ya, this is a fresh 23.4 install, the folder was created in my home ( Test ), I have tried other folders too. Permissions all good, Thunar throws that message.

MX Samba Config works perfect to share it as well as other folders.

I tried the encrypt passwords = false .. that didnt change the issue.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7357
Joined: Sun Jul 07, 2019 5:11 pm

Re: Thunar-shares-plugin issue ...

#5 Post by CharlesV »

m_pav wrote: Thu Oct 17, 2024 5:56 pm The shares.c file looks like the type found in the source code.

Seems the folk at Manjaro found a way to patch it.
https://forum.manjaro.org/t/thunar-shar ... 5/93591/10

and Gitlab
https://gitlab.xfce.org/thunar-plugins/ ... /issues/16
Thanks for looking at it, are you saying the shares.c as "the bad' line in it? or that it HAS been fixed already ?
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
m_pav
Developer
Posts: 1782
Joined: Sun Aug 06, 2006 3:02 pm

Re: Thunar-shares-plugin issue ...

#6 Post by m_pav »

Yes it has been fixed, scroll to the bottom of the gitlab issue link.

We're using thunar-shares-plugin 0.3.1, this is fixed in 0.3.2 released a year ago so I suggest asking the packaging team if they can make it available for testing, however, it seems Debian has not picked it up and there may be a reason for that, so we need to tread carefully.

I do recall more than a few posts this year about not being able to get Thunar netshares working properly, and I did try myself at first, but as I do not use smb, I didn't give it much thought.

Might be worthwhile to put in a package request. Not certain we should be putting this into main until we find out why Debian hasn't picked it up, there may be some underlying issue or conflict, so a repackaged plugin might best be used only by those who find it fixes the issue for them.
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
CharlesV
Global Moderator
Posts: 7357
Joined: Sun Jul 07, 2019 5:11 pm

Re: Thunar-shares-plugin issue ...

#7 Post by CharlesV »

m_pav wrote: Fri Oct 18, 2024 4:21 pm Yes it has been fixed, scroll to the bottom of the gitlab issue link.

We're using thunar-shares-plugin 0.3.1, this is fixed in 0.3.2 released a year ago so I suggest asking the packaging team if they can make it available for testing, however, it seems Debian has not picked it up and there may be a reason for that, so we need to tread carefully.

I do recall more than a few posts this year about not being able to get Thunar netshares working properly, and I did try myself at first, but as I do not use smb, I didn't give it much thought.

Might be worthwhile to put in a package request. Not certain we should be putting this into main until we find out why Debian hasn't picked it up, there may be some underlying issue or conflict, so a repackaged plugin might best be used only by those who find it fixes the issue for them.
Got it! Thank you !
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Post Reply

Return to “Bugs and Non-Package Requests Forum”