file sharing net usershare returns error 255
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MATE Desktop |
Fix Released
|
Unknown
|
|||
Ubuntu MATE |
Invalid
|
Undecided
|
Unassigned | ||
caja (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Kinetic |
Invalid
|
Undecided
|
Unassigned | ||
caja-extensions (Ubuntu) |
Fix Released
|
Undecided
|
Lena Voytek | ||
Jammy |
Fix Released
|
Undecided
|
Lena Voytek | ||
Kinetic |
Fix Released
|
Undecided
|
Lena Voytek | ||
samba (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Kinetic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When using caja with caja-share installed, creating a shared folder fails with the result: "'net usershare' returned error 255."
With this feature failing, users running Ubuntu MATE or caja in general are unable to share new folders on the network.
In order to fix this, one argument was changed from -l to --long in the net usershare call for creating a share. This will not affect older versions of net usershare as both --long and -l were previously valid arguments.
[Test Plan]
Using Ubuntu MATE:
# sudo apt install caja-share
# killall caja
# caja
In the caja file browser right click on a folder then select "Sharing Options"
In the File Sharing menu, select "Share this folder" then "Create Share"
Without the fix, it will then reply with "'net usershare' returned error 255"
[Where problems could occur]
net usershare's arguments can change outside of caja-extension's perview, so if --long is removed as -l was this can become an issue again.
If caja's interface fails to create a shared folder, the workaround would be to use the cli interface starting with "net usershare add --long ..."
This change modifies caja's interaction with net usershare, so any regression would be limited to the behavior of caja creating a shared folder.
[Other Info]
The issue was fixed in Kinetic in version 1.26.0-1ubuntu1.
[Original Description]
Installing samba will not solve the problem.
It doesn't work either: sudo chmod 777 /var/lib/
And editing /etc/samba/smb.conf doesn't work either: added the line "usershare owner only = False"
Ubuntumate 22.04
Related branches
- git-ubuntu bot: Approve
- Bryce Harrington (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 64 lines (+31/-1)4 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/fix-caja-share-long-param.patch (+21/-0)
debian/patches/series (+1/-0)
- Utkarsh Gupta (community): Approve
- Canonical Server MOTU reviewers: Pending requested
- Canonical Server Reporter: Pending requested
-
Diff: 64 lines (+31/-1)4 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/fix-caja-share-long-param.patch (+21/-0)
debian/patches/series (+1/-0)
description: | updated |
tags: | added: jammy |
Changed in ubuntu-mate: | |
status: | New → Confirmed |
Changed in caja (Ubuntu): | |
status: | New → Confirmed |
Changed in caja-extensions (Ubuntu): | |
status: | New → Confirmed |
Changed in samba (Ubuntu): | |
status: | New → Confirmed |
Changed in mate-desktop: | |
status: | Unknown → New |
Changed in mate-desktop: | |
status: | New → Fix Released |
Changed in samba (Ubuntu Jammy): | |
status: | New → Invalid |
Changed in caja (Ubuntu Jammy): | |
status: | New → Invalid |
Changed in caja-extensions (Ubuntu Kinetic): | |
status: | Confirmed → In Progress |
assignee: | nobody → Lena Voytek (lvoytek) |
Changed in caja-extensions (Ubuntu Jammy): | |
assignee: | nobody → Lena Voytek (lvoytek) |
status: | New → In Progress |
description: | updated |
description: | updated |
description: | updated |
Changed in caja-extensions (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
Please add exact steps to reproduce and also run
apport-collect 1972057