Summary: | The plugin doesn't see already created Samba users when trying to create a share | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdenetwork-filesharing | Reporter: | schM0ggi |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | michal.swiatly, nate, sitter, tux |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
schM0ggi
2022-12-15 12:01:00 UTC
What is the name of the samba user? I think the system looks for one with an identical name as your user account. It shouldn't be necessary to create one manually since the system is supposed to do it for you. (In reply to Nate Graham from comment #1) > What is the name of the samba user? I think the system looks for one with an > identical name as your user account. It shouldn't be necessary to create one > manually since the system is supposed to do it for you. The name of my Samba user is the same as my Linux user. Linux = schM0ggi Samba = schM0ggi I've created a Samba user beforehand because it's the first time I'm using Samba and I've tested a share combined with a second Windows pc. I've followed the documentation of Fedora, specifically the part "Sharing a directory inside /home". https://docs.fedoraproject.org/en-US/quick-docs/samba/ I've also deleted my Samba user and tested if the plugin creates a new one when answering the dialogue. It does not. I've checked with the command "sudo pdbedit -L" *** Bug 463066 has been marked as a duplicate of this bug. *** Thanks for the info. Will investigate. User::inSamba() is returning false here when it should be true, triggering the "create a Samba user" page to inappropriately appear. In User::resolve(), there's code to check for existing Samba users, so I guess for your your setup, it isn't working, or isn't being run. Hi. I wanted to ask if there is any light in the tunnel for this bug? I'm having the same bug on Arch Linux. Only on my laptop though, for some reason it works fine on my desktop.
And I know this isn't a proper fix, but just adding "true || " to the first line of User::resolve() works:
> if (true || !qobject_cast<UserManager *>(parent())->canManageSamba() || m_name == everyoneUserName) {
Bug still exists. Exactly the same bahaviour in Ubuntu. |