Bug 500788 - Dolphin does not enable the SMB service when configuring SMB for the first time.
Summary: Dolphin does not enable the SMB service when configuring SMB for the first time.
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL: https://discuss.kde.org/t/unable-to-u...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-26 20:37 UTC by Roke Julian Lockhart Beedell
Modified: 2025-05-09 13:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A Screenshot Of The Error Modal Stating That "Everyone" Cannot Be Converted To An SID (25.51 KB, image/png)
2025-02-26 20:37 UTC, Roke Julian Lockhart Beedell
Details
A Screenshot Of An Error Modal Stating That The Share Name Is Invalid (9.94 KB, image/png)
2025-05-09 13:52 UTC, Roke Julian Lockhart Beedell
Details
A Screenshot Of "Share"'s Password Creation Pseudo-Modal (58.55 KB, image/png)
2025-05-09 13:55 UTC, Roke Julian Lockhart Beedell
Details
A Screenshot Of The Password Creation PolKit Window (35.53 KB, image/png)
2025-05-09 13:56 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2025-02-26 20:37:08 UTC
Created attachment 178916 [details]
A Screenshot Of The Error Modal Stating That "Everyone" Cannot Be Converted To An SID

SUMMARY
-------

`dolphin-24.12.2-1.fc41.x86_64` doesn't enable `smb.service` if its preset is set to `disabled`, and/or it is unstarted.

STEPS TO REPRODUCE
------------------

What *I* did is the undermentioned, so it deliberately isn't generalised for *trivial* reproduction elsewhere, but is reproducible:

1.	Installed `cpe:/o:fedoraproject:fedora:41`.
2.	Installed `dolphin-24.12.2-1.fc41.x86_64`:

	~~~sh
	#!/usr/bin/env sh
	sudo dnf5 --refresh install -y dolphin-24.12.2-1.fc41.x86_64
	~~~

3.	Navigated to [`$HOME/Public`][1].
4.	Right-clicked.
5.	Selected the "Properties" context menu entry.
6.	Selected the "Share" tab.
7.	Created a Samba password.
8.	Authorised the creation of a new Samba user, as prompted to by PolKit.
9.	Enabled sharing the directory via my LAN.
10.	Selected the "OK" button.

OBSERVED RESULT
---------------

> `net usershare add`: cannot convert name "Everyone" to a SID. The transport-connection attempt was refused by the remote system.. Maybe `smbd` is not running.

EXPECTED RESULT
---------------

The service should have been automatically enabled.

SOFTWARE/OS VERSIONS
--------------------

1.	~~~sh
	#!/usr/bin/env sh
	kinfo
	~~~

2.	> ~~~YAML
	> Operating System: Fedora Linux 41
	> KDE Plasma Version: 6.3.1
	> KDE Frameworks Version: 6.11.0
	> Qt Version: 6.8.2
	> Kernel Version: 6.13.4-200.fc41.x86_64 (64-bit)
	> ~~~

ADDITIONAL INFORMATION
----------------------

Originally discussed at [`discuss.kde.org/t/30396/3`][2].

[1]: file://localhost/home/RokeJulianLockhart/Public
[2]: https://discuss.kde.org/t/unable-to-use-smb-via-dolphin-because-a-username-cannot-be-converted-to-an-sid-has-anyone-a-workaround/30396/3?u=rokejulianlockhart
Comment 1 Roke Julian Lockhart Beedell 2025-05-09 13:52:56 UTC
Created attachment 181107 [details]
A Screenshot Of An Error Modal Stating That The Share Name Is Invalid

(In reply to Roke Julian Lockhart Beedell from comment #0)

This causes very strange errors, like the one attached. It stated "Share name is invalid" when attempting to share merely `$HOME` (if I recall correctly; it could have been `./Downloads`).

SOFTWARE/OS VERSIONS

This reproduces on my host:

> Operating System: Fedora Linux 42  
> KDE Plasma Version: 6.3.4  
> KDE Frameworks Version: 6.13.0  
> Qt Version: 6.9.0  
> Kernel Version: 6.14.5-300.fc42.x86_64 (64-bit)

...and a VM:

> Operating System: Fedora Linux 42  
> KDE Plasma Version: 6.3.4  
> KDE Frameworks Version: 6.13.0  
> Qt Version: 6.9.0  
> Kernel Version: 6.14.5-300.fc42.x86_64 (64-bit)  
> Graphics Platform: Wayland  
> Graphics Processor: llvmpipe  
> Manufacturer: QEMU  
> Product Name: Standard PC (Q35 + ICH9, 2009)  
> System Version: pc-q35-9.2
Comment 2 Roke Julian Lockhart Beedell 2025-05-09 13:55:39 UTC
Created attachment 181108 [details]
A Screenshot Of "Share"'s Password Creation Pseudo-Modal

Additionally, I'm reprompted to create a new damn SAMBA password every time I enter "Share".
Comment 3 Roke Julian Lockhart Beedell 2025-05-09 13:56:24 UTC
Created attachment 181109 [details]
A Screenshot Of The Password Creation PolKit Window

(In reply to Roke Julian Lockhart Beedell from comment #2)

That is, even with the service enabled.