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
if I click
the smb it says 'folder does not exist' so i don't know if this is normal or not
What exactly is attempting to be shared here?
Very important for further advice on where to go from here
A folder with other folders/files in them
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?
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
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
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
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,
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
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 shareroomies 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
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
This is what they see
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
Roger
my home owner is also trying to help me
I guess samba requires ports to be forwarded on the router?
not for LAN samba
port forward is for WAN access
One extra step, you need to allow samba in the firewall settings
do not forward any ports
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
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
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
Sorry, Kyle not trying to frustraste anyone, What am I doing wrong here then?
Make sure samba is allowed on your computer's firewalls over the LAN
as wolfy pointed out
I've Done that.
and do not port forward under any circumstance
Should I re-enable hairpin then?
(Enable hairpin NAT (also known as "NAT loopback" or "NAT reflection"))
doesn't matter
I don't know if this is helpful in figuring out my issues
I removed the rules
Waiting on roomies to get back from the store to re-test to see if the firewall did the trick
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
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
btw you can also setup plex if you want to setup media only, i think its less complicated than samba 😅
What user name do I give them, I only set up a password
it should use your linux username and password
I do plan to do this later, once I have a better setup
i think samba can have it own password
but the username should be real linux username
your username probably
Ok, they can get to the folder now, but its now saying requires adminstrastor access?
this is how I have it set
Woops (one second)
They got the credentials, entered the credentials but trying to access the folder is met with request for administrative permission
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.
@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
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)
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'
You've already run the first command
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
ohhh right, sorry. let me see if it's easy to fix
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?
run
kate /etc/group
then just remove the extra entry and save (it will pop up for your user password)then carry on from step 2
Re-run command 2 or skip it?
Yup rerun step 2
Just change your password. You don't want to have username and password to be bazzite
ok done with all the commands, whats next, also I'm going to spoil you so hard later
At that point redoing anything shouldn't matter
Hope the rest of the video works
Having roomies check
fingers crossed
On main structure folder do I need to enable allow guests?
Yeah
anything else on here I need to do?
Still have to enter the password. so no idea why they call it guest access
looks good. just click on OK
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?
You shouldn't need to. At most you might need to reshare the folder but not the other steps
(Do you mind if I dm you, so I can send you some thank you gifts later?)
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
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 automaticallyMaybe 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
its a quadlet! 🤣 @wolfyreload
no problem, i have my fair share of struggling with samba too, it shouldnt been this difficult
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
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 configuredthey see this now xD
I only shared the MainStrucutre folder and nothing else
also it could be the all the tinkering caused the folder to get stuck or something
maybe restart your pc lmao
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
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.
yep just gotta enable the samba in firewall
I'll try it later in my VM environment.
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
Btw what happened in the end after you rebooted your computer? Did the share carry on working or did you have to redo anything?
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
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
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
Odd name for your partner
Huh? the person I'm mortaging my house from is a Tech, and a friend, hes not my partner
Just a joke 😅
Ah sorry, its hard to tell jokes/sarcasium on the net these days lol
Can relate
And samba is horrible so had to check the thread 😅
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
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
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
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
I was thinking Plex never heard of jellyfin
Boo Plex boo
Lol
Could always do TailSpin xD
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.
I'll look into it
Sorry don't get the reference
I tried 😅
oh I must have the wrong name, its another media sharing thing thats overly complicated its called tail something
Oh... Tailscale?
I think so?
If it is then the juice is worth the squeeze afaik
No personal experience 😔
Did this and didn't have to do anything else and it's working again
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
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.
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?
I never have any issue with that, just reformat it and you can use it as whatever you need
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
This littary happens everytime I put linux on a flash drive
Its not letting me, it keeps saying permission denied because of write protect
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
Thank you!