Samba

I want a folder on my bazzite machine to be accessible via LAN, but clicking the share tab on the properties says "This folder cant be shared because your user account isnt a member of the "usershares" group. clicking "make me a group member" doesn't do anything after i inserted my password and restarted the machine.
Solution:
A bit of a rabbit hole to get this one to work Looking at this https://docs.fedoraproject.org/en-US/fedora-silverblue/troubleshooting/#_unable_to_add_user_to_group You'll only be able to add a reference to the usershares group in the /etc/group file with the following command...
Jump to solution
2 Replies
Solution
wolfyreload
wolfyreload2mo ago
A bit of a rabbit hole to get this one to work Looking at this https://docs.fedoraproject.org/en-US/fedora-silverblue/troubleshooting/#_unable_to_add_user_to_group You'll only be able to add a reference to the usershares group in the /etc/group file with the following command
grep -E '^usershares:' /usr/lib/group | sudo tee -a /etc/group
grep -E '^usershares:' /usr/lib/group | sudo tee -a /etc/group
Then you can add your user to that group with
sudo usermod -aG usershares $USER
sudo usermod -aG usershares $USER
Then log off and log back in for the change to take effect Then I found that the Samba service wasn't running which I needed to actually share a folder to we enable and start the smb service
sudo systemctl enable smb.service
sudo systemctl start smb.service
sudo systemctl enable smb.service
sudo systemctl start smb.service
You also need to run to allow Samba sharing (https://discord.com/channels/1072614816579063828/1298222632206077993/1298222632206077993) and some reading in the redhat documentation (https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-managing_confined_services-samba-booleans) I couldn't actually access my shares at all otherwise.
sudo setsebool -P samba_export_all_rw=1
sudo setsebool -P samba_export_all_rw=1
At this point you can share your folder with the KDE gui and it should be picked up on a Windows PC
Miyagi
MiyagiOP2mo ago
gotcha i see i tried this, and another one alternative which is just doing this: sudo systemctl enable sshd sudo systemctl start sshd and then typing sftp://<bazzite username>@ip on filezilla or something
Want results from more Discord servers?
Add your server