Bug 2096405
Summary: | Manual configuration in root partition required before Samba shares can be created | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nate Graham <nate> |
Component: | samba | Assignee: | Andreas Schneider <asn> |
Status: | CLOSED ERRATA | QA Contact: | Denis Karpelevich <dkarpele> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 37 | CC: | abokovoy, aboscatt, anoopcs, asn, dkarpele, gdeschner, iboukris, jarrpa, jstephen, lmohanty, madam, ngompa13, pfilipen, sbose, ssorce, travier |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | samba-4.17.0-1.fc38 samba-4.17.0-1.fc37 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-09-13 19:52:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nate Graham
2022-06-13 18:25:44 UTC
Relevant upstream bug report: https://bugs.kde.org/show_bug.cgi?id=425202 What we could do is to create a samba-usershares package which does the following: a) Create /etc/samba/usershares.conf with the following config: [global] usershare path = /var/lib/samba/usershares usershare max shares = 100 usershare allow guests = yes usershare owner only = yes b) Add a comment out "# include /etc/samba/usershares.conf" c) Create a group "usershares" d) Create /var/lib/samba/usershares and give "usershares" access to it. The user would still need to edit /etc/samba/smb.conf and add the user to the usershares group after installing the package. Would that be fine with you? Allowing the user (or a piece of user software) to install a specific package to enable this functionality makes sense and works. Our software can also add the user to the sambashares group and recommend a reboot, so that's fine too. But anything that requires manually editing smb.conf won't work, I'm afraid. Any changes the user or the software makes to that file can get overwritten with the next distro upgrade. So ideally no manual changes to the default smb.conf file would be required here. Since we're making a separate distro package that enables usershares when installed, it would be best if its packaging postinstall hookscript could take care of uncommenting that "include" line when the package is installed, and commenting it back out when the package is uninstalled. This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37. FEDORA-2022-a457400fcd has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-a457400fcd FEDORA-2022-a457400fcd has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-4555909843 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-4555909843 FEDORA-2022-4555909843 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-4555909843` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-4555909843 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-4555909843 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |