Sharing files with local computers

Cont my converstation with Wolfyreloaded, Folder shows the network symbol on it, yet roomies can't seem to see it.
110 Replies
Xaniene
XanieneOP•2w ago
if I click the smb it says 'folder does not exist' so i don't know if this is normal or not
No description
Kyle Gospo
Kyle Gospo•2w ago
What exactly is attempting to be shared here? Very important for further advice on where to go from here
Xaniene
XanieneOP•2w ago
A folder with other folders/files in them
Kyle Gospo
Kyle Gospo•2w ago
Yeah but is it just like random files, are these games, what exactly is the end goal? Is this stuff that you just prefer to keep in sync across machines?
Xaniene
XanieneOP•2w ago
No, Just letting roomies have access to them, Movies, anime etc that I own that i share with roomies so they can watch the stuff
Kyle Gospo
Kyle Gospo•2w ago
Okay, so samba is for sure the right way to do that And your permissions are going to be set by how you mount your samba share Trying to change them after the mount is the wrong way to go about it
Xaniene
XanieneOP•2w ago
How do I do this, Thanks for all the help so far outside of this, I think everything else is workign perfectly at this point
Kyle Gospo
Kyle Gospo•2w ago
Unix & Linux Stack Exchange
How to set permissions for user to smb mount with fstab?
Here is the line in my fstab file (with the names of the server and username changed): //server/user /mnt/share cifs user=user,uid=1000,gid=1000,domain=DOMAIN,rw,username=user,password=password,
Xaniene
XanieneOP•2w ago
I'm not sure i'm following that, Its a person having a permissions issue asking for help unless i'm not understanding the link
wolfyreload
wolfyreload•2w ago
Is your friend on a Windows PC? Or are they also on linux? If they on Linux then mounting the share in their /etc/fstab will work. If they on Windows it would be opening Windows Explorer and \\your-conputers-ip-address\share-name and they will need to enter in the credentials that you set and they should be able to access the share
Xaniene
XanieneOP•2w ago
roomies are on Windows PC (Mix between 10/11) Had roomie try this, unless i'm giving them the wrong info, its just not doing anything Unless theirs a way I can just install this? https://www.d-lan.net/ Which is what I'm familer with
wolfyreload
wolfyreload•2w ago
If they click on the network tab in Windows Explorer does it show devices? Or does it show turn on file sharing or something like that
No description
Xaniene
XanieneOP•2w ago
No description
Xaniene
XanieneOP•2w ago
This is what they see
wolfyreload
wolfyreload•2w ago
looks like it's windows only software and it was last updated in 2012. So probably not Going to set up samba again on a box and see if I can see what is up
Xaniene
XanieneOP•2w ago
Roger my home owner is also trying to help me I guess samba requires ports to be forwarded on the router?
Kyle Gospo
Kyle Gospo•2w ago
not for LAN samba port forward is for WAN access
wolfyreload
wolfyreload•2w ago
One extra step, you need to allow samba in the firewall settings
No description
Kyle Gospo
Kyle Gospo•2w ago
do not forward any ports
wolfyreload
wolfyreload•2w ago
yeah as kyle said, don't forward ports as that will make your samba share accessible outside of your network and accessible over the internet
Xaniene
XanieneOP•2w ago
Sorry i'm just getting a bit confused, My home owner is a interntional certified computer tech, hes saying it needs port forwarding if your trying to share with a windows machine
Kyle Gospo
Kyle Gospo•2w ago
Your home owner is mistaken and dangerously so, port forwarding SAMBA is a one way trip to having 100K bots knocking on your door or worse
Xaniene
XanieneOP•2w ago
Sorry, Kyle not trying to frustraste anyone, What am I doing wrong here then?
Kyle Gospo
Kyle Gospo•2w ago
Make sure samba is allowed on your computer's firewalls over the LAN as wolfy pointed out
Xaniene
XanieneOP•2w ago
I've Done that.
Kyle Gospo
Kyle Gospo•2w ago
and do not port forward under any circumstance
Xaniene
XanieneOP•2w ago
Should I re-enable hairpin then? (Enable hairpin NAT (also known as "NAT loopback" or "NAT reflection"))
Kyle Gospo
Kyle Gospo•2w ago
doesn't matter
Xaniene
XanieneOP•2w ago
I don't know if this is helpful in figuring out my issues
No description
Xaniene
XanieneOP•2w ago
I removed the rules Waiting on roomies to get back from the store to re-test to see if the firewall did the trick
wolfyreload
wolfyreload•2w ago
I'm going to make a draft video for the full setup (will do a proper youtube video later) I think samba would be a fairy common thing that people will struggle with on bazzite
Xaniene
XanieneOP•2w ago
ya that would be fantastic!, I think is littary the last thing i need to get done LOL everything else is just working on windows I just used D-lan cause windows file sharing just would never work no matter what we did Its asking for a username and password now
asen23
asen23•2w ago
btw you can also setup plex if you want to setup media only, i think its less complicated than samba 😅
Xaniene
XanieneOP•2w ago
What user name do I give them, I only set up a password
asen23
asen23•2w ago
it should use your linux username and password
Xaniene
XanieneOP•2w ago
I do plan to do this later, once I have a better setup
asen23
asen23•2w ago
i think samba can have it own password but the username should be real linux username your username probably
Xaniene
XanieneOP•2w ago
Ok, they can get to the folder now, but its now saying requires adminstrastor access?
Xaniene
XanieneOP•2w ago
this is how I have it set
No description
Xaniene
XanieneOP•2w ago
Woops (one second)
Xaniene
XanieneOP•2w ago
They got the credentials, entered the credentials but trying to access the folder is met with request for administrative permission
No description
wolfyreload
wolfyreload•2w ago
tick "allow guests" in your other screen Yeah after figuring out Samba. You are right. Also with your quadlets documention, most of the setup will just be copy paste.
Xaniene
XanieneOP•2w ago
@wolfyreload i get the same errors I was showing you prior anytime I try to tweak the permissions, also thats the wrong folder I just noticed x.x
wolfyreload
wolfyreload•2w ago
Here is my quick and dirty solution. if you want to copy and paste the scripts I'm running here are the scripts. Not sure why but the home folder is getting shared (which isn't going to be great)
grep -E '^usershares:' /usr/lib/group | sudo tee -a /etc/group
sudo usermod -aG usershares $USER
sudo systemctl enable --now smb.service
sudo setsebool -P samba_export_all_rw=1
grep -E '^usershares:' /usr/lib/group | sudo tee -a /etc/group
sudo usermod -aG usershares $USER
sudo systemctl enable --now smb.service
sudo setsebool -P samba_export_all_rw=1
Xaniene
XanieneOP•2w ago
bazzite@bazzite:~$ sudo usermod -aG usershares $USER Multiple entries named 'usershares' in /etc/group. Please fix this with pwck or grpck. usermod: failed to prepare the new /etc/group entry 'usershares'
wolfyreload
wolfyreload•2w ago
You've already run the first command
Xaniene
XanieneOP•2w ago
i was trying to follow your steps 1 by one like in the video, i saw you entered sudo usermod -aG usershares $USER after the first command
wolfyreload
wolfyreload•2w ago
ohhh right, sorry. let me see if it's easy to fix
Xaniene
XanieneOP•2w ago
First command, went fine Second command was met with that error Real stupid question..Daring installation of bazzite was I suppose to create a account?
wolfyreload
wolfyreload•2w ago
run kate /etc/group then just remove the extra entry and save (it will pop up for your user password)
No description
wolfyreload
wolfyreload•2w ago
then carry on from step 2
Xaniene
XanieneOP•2w ago
Re-run command 2 or skip it?
wolfyreload
wolfyreload•2w ago
Yup rerun step 2 Just change your password. You don't want to have username and password to be bazzite
Xaniene
XanieneOP•2w ago
ok done with all the commands, whats next, also I'm going to spoil you so hard later
wolfyreload
wolfyreload•2w ago
At that point redoing anything shouldn't matter Hope the rest of the video works
Xaniene
XanieneOP•2w ago
Having roomies check
wolfyreload
wolfyreload•2w ago
fingers crossed
Xaniene
XanieneOP•2w ago
On main structure folder do I need to enable allow guests?
wolfyreload
wolfyreload•2w ago
Yeah
Xaniene
XanieneOP•2w ago
anything else on here I need to do?
No description
wolfyreload
wolfyreload•2w ago
Still have to enter the password. so no idea why they call it guest access looks good. just click on OK
Xaniene
XanieneOP•2w ago
Checking so its not letting me use allow guests, spits that same error out as prior, but roomie can seem to access folder regardless, having them see if they can pull/use etc Its showing some extra folders for some reason but i don't think that matters at this point as long as its working xD @wolfyreload bless your dang heart man Please POKE ME in DM, I'm going to spoil you with some steam keys you can use them, give them away whatever if I restart and enter the password for that drive, am I going to have to go though all this again LOL?
wolfyreload
wolfyreload•2w ago
You shouldn't need to. At most you might need to reshare the folder but not the other steps
Xaniene
XanieneOP•2w ago
(Do you mind if I dm you, so I can send you some thank you gifts later?)
asen23
asen23•2w ago
if you still up for some experimentation i found some better ways to do it (i think atleast) so you first create a file called samba.container in /etc/containers/systemd with content like this
# /etc/containers/systemd/samba.container
[Container]
Environment="SAMBA_VOLUME_CONFIG_guest=[Guest Share]; path=/shares/guest; guest ok = yes; browseable = yes"
Image=ghcr.io/servercontainers/samba:smbd-only-latest
Network=host
Volume=/run/media/bazzite/Data/MainStructure:/shares/guest:z

[Service]
Restart=always

[Install]
WantedBy=default.target
# /etc/containers/systemd/samba.container
[Container]
Environment="SAMBA_VOLUME_CONFIG_guest=[Guest Share]; path=/shares/guest; guest ok = yes; browseable = yes"
Image=ghcr.io/servercontainers/samba:smbd-only-latest
Network=host
Volume=/run/media/bazzite/Data/MainStructure:/shares/guest:z

[Service]
Restart=always

[Install]
WantedBy=default.target
Change the Guest Share to whatever you want the folder to show up as then do sudo systemctl daemon-reload and sudo systemctl start samba your friend should be able to access without any credential btw to create the file you need sudo too, i think kate should prompt you automatically
Xaniene
XanieneOP•2w ago
Maybe later i'll try that, thank you so much Asen, right now my brain is on fire from all this learning and fandangoing, been at this samba thing since I woke up LOL
asen23
asen23•2w ago
its a quadlet! 🤣 @wolfyreload no problem, i have my fair share of struggling with samba too, it shouldnt been this difficult
Xaniene
XanieneOP•2w ago
Weird thing is, it still spits a error if I try to enable allow guests, and on my roomies end it shows like 3-4 folders now but as long as they can access the one folder primarly i'm content atm
asen23
asen23•2w ago
yeah the problem is samba actually dont have actual guest feature (if i understand it correctly) it just uses a fictional user called nobody, my theory is it have something to do with it so my solution is to just use a container with some script that ppl smarter than me have figured out how tf to do it, you just give it config and voila you have samba configured
Xaniene
XanieneOP•2w ago
they see this now xD
No description
Xaniene
XanieneOP•2w ago
I only shared the MainStrucutre folder and nothing else
asen23
asen23•2w ago
also it could be the all the tinkering caused the folder to get stuck or something maybe restart your pc lmao
Xaniene
XanieneOP•2w ago
Maybe LOL, Kinda scared to restart atm though I don't want to have to go though all this again xD I'll keep you guys posted though, Thank you to everyone involved, like seriously
wolfyreload
wolfyreload•2w ago
Thats really cool. Didn't know there was a dockerized version of samba. Way better than having to mess with machine settings plus it would probably work perfectly with Bazzite Gnome with little to no tinkering.
asen23
asen23•2w ago
yep just gotta enable the samba in firewall
wolfyreload
wolfyreload•2w ago
I'll try it later in my VM environment.
asen23
asen23•2w ago
btw if you can make it work in rootless podman it will be a plus poin, in my experiment it just get permission denied for some reason so i used rootful podman
wolfyreload
wolfyreload•2w ago
Btw what happened in the end after you rebooted your computer? Did the share carry on working or did you have to redo anything?
Xaniene
XanieneOP•2w ago
Haven't tested yet, having to run out of state to go get my roomie cause his brother lost his wallet x.x will test when I get back home Home, and will have folks test when we're not passing out from the trip x.x Just had the roomie check and they are telling me they can not access the files
wolfyreload
wolfyreload•2w ago
I'd try the end part and just try share the folder again and see if that works. The rest of the steps is too much effort lol 🙂 If that fails, check the filewall settings as I'm not sure if they persisted between reboots
Xaniene
XanieneOP•2w ago
ya the firewall had samba turned off, i guess it doesn't stick after reboot? I see theirs a permeant toggle, i'll try that
Dan
Dan•2w ago
Odd name for your partner
Xaniene
XanieneOP•2w ago
Huh? the person I'm mortaging my house from is a Tech, and a friend, hes not my partner
Dan
Dan•2w ago
Just a joke 😅
Xaniene
XanieneOP•2w ago
Ah sorry, its hard to tell jokes/sarcasium on the net these days lol
Dan
Dan•2w ago
Can relate And samba is horrible so had to check the thread 😅
Xaniene
XanieneOP•2w ago
at least it works unlike windows built in lan file sharing, which no matter how many PC's i've tried, i can't get it work even following their offical 'how to' guide to a T I always have to use D-Lan on windows machine to do any kind of lan file sharing Just wish their was something like D-Lan for linux, but their doesn't seem to be
Dan
Dan•2w ago
FTP could be another option, or better yet sftp with keys for access, you'd need to add their keys on a stub user that had access to the location, there is also... If it's for completely legitimate media then jellyfin would be a more secure option with TV apps for them to use for fire sticks etc
Xaniene
XanieneOP•2w ago
I use to do FTP back in the day but its been so long since i've done that, I just wanted some simple solution until I set up a proper nas
Dan
Dan•2w ago
Only thing with the last one is you might have to rearrange the folder so it could be scanned Honestly if it's just for media then jellyfin is gunna be a better tool for the job
Xaniene
XanieneOP•2w ago
I was thinking Plex never heard of jellyfin
Dan
Dan•2w ago
Boo Plex boo
Xaniene
XanieneOP•2w ago
Lol Could always do TailSpin xD
Dan
Dan•2w ago
The Free Software Media System | Jellyfin
The volunteer-built media solution that puts you in control of your media. Stream to any device from your own server, with no strings attached.
Xaniene
XanieneOP•2w ago
I'll look into it
Dan
Dan•2w ago
Sorry don't get the reference
Dan
Dan•2w ago
I tried 😅
No description
Xaniene
XanieneOP•2w ago
oh I must have the wrong name, its another media sharing thing thats overly complicated its called tail something
Dan
Dan•2w ago
Oh... Tailscale?
Xaniene
XanieneOP•2w ago
I think so?
Dan
Dan•2w ago
If it is then the juice is worth the squeeze afaik No personal experience 😔
Xaniene
XanieneOP•2w ago
Did this and didn't have to do anything else and it's working again
asen23
asen23•2w ago
tailscale sharing is very limited, only can share between devices under same account and you need to explicitly share it like bluetooth/airdrop plex is more corporate sure, but in my experience it has the best scanner compared to other and a lil bit more user friendly
wolfyreload
wolfyreload•2w ago
The Jellyfin server idea that @Dan recommended is a great idea. Jellyfin is the opensource competitor of Plex and it's very easy to install on Bazzite as it's Jellyfin Server flatpak available on the Discover store.
Xaniene
XanieneOP•2w ago
This is a off topic question, but everytime I make a bootable linux OS on any of my flash drives, it always writes protects them, no matter what brand, How do I remove write protect so I can reuse my thumb drive?
asen23
asen23•2w ago
I never have any issue with that, just reformat it and you can use it as whatever you need
wolfyreload
wolfyreload•2w ago
I usually use Ventoy for making the bootable USB devices. You copy over multiple ISO files and boot any one of them and you can still use the drive for other stuff if you want But yeah as asen23 said, you just need to format again and you good to go
Xaniene
XanieneOP•2w ago
This littary happens everytime I put linux on a flash drive Its not letting me, it keeps saying permission denied because of write protect
wolfyreload
wolfyreload•2w ago
If you open KDE partition manager and select the right drive (make sure that it's the right drive). Try and replace the partition table, it sometimes works when other methods fail to format the drive
No description
Xaniene
XanieneOP•2w ago
Thank you!

Did you find this page helpful?