My journey to successfully game under Linux (and overcome Microsoft's Stranglehold)

Page 7 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Indus

Lifer
May 11, 2002
15,964
11,108
136
Yea, not sure how it’s gonna go for fedora in that area. Software firewalls have been included with windows for a long time, and with different distros afaik. The list in the OP’s screenie looks excessive tho, I agree. I’m tempted to install on a spare pc to mess around with it.

I had picked trusted earlier but I set it to home and set open ports for Localsend and I was able to send files.

Maybe I need to do the same thing with samba since even though it's got permissions in home.. I don't see any open ports.

I also tried changing samba.conf files to make the folder read only.. as I thought it might help with sharing the folder but nope.. didn't work

Code:
[SharedStuff]
   path = /mnt/Movies/Downloaded Movies/
   browsable = yes
   read only = yes
   guest ok = no

BTW I'm curious.. how often do you update fedora.. it seems to want to update every other day with a minor upgrade or something. Is this something I want to do weekly or monthly or quarterly??
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
I had picked trusted earlier but I set it to home and set open ports for Localsend and I was able to send files.

Maybe I need to do the same thing with samba since even though it's got permissions in home.. I don't see any open ports.

I also tried changing samba.conf files to make the folder read only.. as I thought it might help with sharing the folder but nope.. didn't work

Code:
[SharedStuff]
   path = /mnt/Movies/Downloaded Movies/
   browsable = yes
   read only = yes
   guest ok = no
Ok, here's one of my shares in my samba config, the spot in the brackets is what the share name will be. when i go to windows start menu, and type \\ip_of_server_here, windows explorer pops up and this share (among others) is listed.
Code:
# adding samba share for media backup
[share1]
   comment = samba share for media backup
   path = /mnt/data
   public = no
   read only = no
   writable = yes
   printable = no
   browsable = yes
   create mask = 0755
   directory mask = 0755
BTW I'm curious.. how often do you update fedora.. it seems to want to update every other day with a minor upgrade or something. Is this something I want to do weekly or monthly or quarterly??

No idea, I would keep up on the updates, it's always a good idea to review them before updating but sometimes just click go :)
 
  • Like
Reactions: Indus

Indus

Lifer
May 11, 2002
15,964
11,108
136
Always loved KDE since it's super easy to fix..

If you ever screw up and accidently delete panel meaning your taskbar.. it's super easy to get it back..

Gosh I missed that.. wife's done that a few times. I might have to move her from Cinnamon to KDE.

Screenshot_20250729_170201.png
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Had a thought maybe it's my samba folder path not being in quotes, so I fixed that.. and checked samba status after a restart..

Looks fine now..

Code:
jyaku on Earth ~
❯ sudo systemctl status smb
● smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Tue 2025-07-29 22:34:37 EDT; 4s ago
 Invocation: 44e1faff329848b5b58be205e79b377b
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
   Main PID: 134566 (smbd)
     Status: "smbd: ready to serve connections..."
      Tasks: 3 (limit: 37774)
     Memory: 7.5M (peak: 8.7M)
        CPU: 31ms
     CGroup: /system.slice/smb.service
             ├─134566 /usr/bin/smbd --foreground --no-process-group
             ├─134576 /usr/bin/smbd --foreground --no-process-group
             └─134577 /usr/bin/smbd --foreground --no-process-group

Jul 29 22:34:37 Earth systemd[1]: Starting smb.service - Samba SMB Daemon...
Jul 29 22:34:37 Earth systemd[1]: Started smb.service - Samba SMB Daemon.

Going to check if I can see it on the network on the windows computer.

Fingers crossed

also opened up the ports samba likes and set home as the default instead of public..

Code:
jyaku on Earth ~
❯ firewall-cmd --get-active-zones
home
  interfaces: wlo1 lo
public (default)

jyaku on Earth ~
❯ sudo firewall-cmd --set-default-zone=home
success

jyaku on Earth ~
❯ firewall-cmd --get-active-zones       
home (default)
  interfaces: wlo1 lo

jyaku on Earth ~
❯ sudo firewall-cmd --reload            
success
 
Last edited:

Indus

Lifer
May 11, 2002
15,964
11,108
136
Can you not just right click the folder and use the network share option?

View attachment 127938

No I don't have that option or anything like that.

But you gave me an idea.. I should change ownership of folder from root to user.

So I tried terminal commands of

Code:
sudo chown -R jyaku:jyaku "/mnt/Movies"

but as you can see.. operation not permitted


Screenshot_20250730_105849.png
 

WelshBloke

Lifer
Jan 12, 2005
33,067
11,236
136
No I don't have that option or anything like that.
Might just be a Gnome thing. I just did that, messed around with some firewall rules and I can see that share in windows.
I've had to set some windows options awhile ago to access SMB shares on a freenas server so that might have helped.
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Might just be a Gnome thing. I just did that, messed around with some firewall rules and I can see that share in windows.
I've had to set some windows options awhile ago to access SMB shares on a freenas server so that might have helped.

No I think the problem is the ownership of the drive is set to root when it mounts.. so I need to change something there that will allow me to change permissions as user, instead of getting the "not permitted"

But what do I change here to be able to set ownership to user named "jyaku" and apparently group named instead of root..

Anyone have any ideas??

Screenshot_20250730_110619.png

I don't want it to be root anymore by default like it shows here..
Screenshot_20250730_110845.png
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Might just be a Gnome thing. I just did that, messed around with some firewall rules and I can see that share in windows.
I've had to set some windows options awhile ago to access SMB shares on a freenas server so that might have helped.

Yea, it's a good idea to disable the firewalls to test if the shares are working without software in the way.
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Ok I had some luck with an experiment..

I added the gid=1000 to the mounting line in fstab..

rw,user,uid=1000,gid=1000,dmask=007,fmask=117,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Movies

Now I have ownership under my username but it still won't let me modify with sudo chown.

So I'm thinking it needs to be set to 777 from default when mounting the drive.

I wonder how I do that.. Linux is frustrating for some but it's like a jigsaw puzzle.. once you assemble it.. the satisfaction is up there!
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Ok I've made a minor breakthrough..

To be able to mount the drives at startup and also have them be readable/ writeable and shareable.. the fstab file needs editing or you can do it in disks utility:

rw,user,uid=1000,gid=1000,umask=0000,nosuid,nodev,nofail,x-gvfs-show

so my fstab file looks like this:

LABEL=Movies /mnt/Movies auto rw,user,uid=1000,gid=1000,umask=0000,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Movies 0 0

LABEL=Games /mnt/Games auto rw,user,uid=1000,gid=1000,umask=0000,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Games 0 0

LABEL=Nikon /mnt/Nikon auto rw,user,uid=1000,gid=1000,umask=0000,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Nikon 0 0

LABEL=Elements /mnt/Elements auto rw,user,uid=1000,gid=1000,umask=0000,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Elements 0 0


Now I have no problems with the folder saying it needs additional permissions for sharing. So that is fixed. Only problem left is seeing it over the network somehow. And I see the "shared stuff" folder but I can't access it.. Access is denied.

Hmm..
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Might just be a Gnome thing. I just did that, messed around with some firewall rules and I can see that share in windows.
I've had to set some windows options awhile ago to access SMB shares on a freenas server so that might have helped.

Still not loading.. I see the preparing game.. I see the epic window pop up and then the process dies and I have option to click play again!

I could try to delete the pfx folders and have it redo things again.

I'm curious though.. when you get this window.. do you sign in with the steam user account or you leave it be?

Screenshot_20250730_134451.png
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Not sure how to disable it completely.. should I put it as "trusted" ?

Ensure Samba is allowed thru the current "Home" profile, and disable the windows firewall to start. One step at a time when making troubleshooting steps.
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Okies trying.

@ch33zw1z no change at all after taking firewalls off both.

Same as before.. I can see the folders but not it's contents.

I've even renamed the folder to be 1 short name instead of 2 words as I thought that was interfering with this.

So I'm thinking it's a samba configuration issue as I can see Samba shared folder but not its contents?
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
@ch33zw1z no change at all after taking firewalls off both.

Same as before.. I can see the folders but not it's contents.

I've even renamed the folder to be 1 short name instead of 2 words as I thought that was interfering with this.

So I'm thinking it's a samba configuration issue as I can see Samba shared folder but not its contents?

you need to slow down, one thing at a time. and previously, iirc, you couldn't open the share at all, meaning that typing \\ip_of_server on the windows Run prompt failed to open anything.

So, now you're saying that opening the share from the Run prompt = \\ip_of_server will now open a window and display the shared folder?
 
  • Like
Reactions: Indus

Indus

Lifer
May 11, 2002
15,964
11,108
136
you need to slow down, one thing at a time. and previously, iirc, you couldn't open the share at all, meaning that typing \\ip_of_server on the windows Run prompt failed to open anything.

So, now you're saying that opening the share from the Run prompt = \\ip_of_server will now open a window and display the shared folder?

Yes it's been that way since today.

I fixed a couple of things today as noted above.. I changed the mount settings so the drive would not be owned by root, rather a user. Also it would have access to Read and Write on the drive by default. And it is accessible to be shared and I don't get the "you need additional permissions to share this folder".

On the samba side.. apparently the secondary user I made somehow caused problems or didn't save at all.. which makes no sense since I didn't delete it.. but I just went ahead and created a new samba user with my normal username and pw.

I also redid a few things in Samba:

Code:
[SharedStuff]

[Movies]
   path = /mnt/Movies/Videos/
   browsable = yes
   writeable=yes
   read only = no
   guest ok = no
   valid users=jyaku

After that Samba is visible with \\ip of server showing the folder but the folder is unaccessible and Windows says permission denied

20250730_152403.jpg
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Yes it's been that way since today.

I fixed a couple of things today as noted above.. I changed the mount settings so the drive would not be owned by root, rather a user. Also it would have access to Read and Write on the drive by default. And it is accessible to be shared and I don't get the "you need additional permissions to share this folder".

On the samba side.. apparently the secondary user I made somehow caused problems or didn't save at all.. which makes no sense since I didn't delete it.. but I just went ahead and created a new samba user with my normal username and pw.

I also redid a few things in Samba:

Code:
[SharedStuff]

[Movies]
   path = /mnt/Movies/Videos/
   browsable = yes
   writeable=yes
   read only = no
   guest ok = no
   valid users=jyaku

After that Samba is visible with \\ip of server showing the folder but the folder is unaccessible and Windows says permission denied

View attachment 127952
Why is there a shared folder with your user name there? Why didn't you comment out the old folder share [SharedStuff]? Is there more shared in the samba .conf?
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Why is there a shared folder with your user name there? Why didn't you comment out the old folder share [SharedStuff]? Is there more shared in the samba .conf?

I'm not sure actually.. I think it's because of the authorized user.. because I had that set to another user and it showed the folder by that name.

This is my samba.conf file at the moment.

Code:
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
#
# Note:
# SMB1 is disabled by default. This means clients without support for SMB2 or
# SMB3 are no longer able to connect to smbd (by default).

[global]
    workgroup = WORKGROUP
    security = user

    passdb backend = tdbsam

    printing = cups
    printcap name = cups
    load printers = yes
    cups options = raw

    smb3 unix extensions = yes

    # Install samba-usershares package for support
    include = /etc/samba/usershares.conf

[homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes

[printers]
    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @printadmin root
    force group = @printadmin
    create mask = 0664
    directory mask = 0775

[SharedStuff]

[Movies]
   path = /mnt/Movies/Videos/
   browsable = yes
   writeable = yes
   read only = no
   guest ok = no
   valid users=jyaku

And no I'm trying to only keep it simple and only start with 1 folder to share for now.. can add more later or just add subfolders later if needed
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
I'm not sure actually.. I think it's because of the authorized user.. because I had that set to another user and it showed the folder by that name.

This is my samba.conf file at the moment.

Code:
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
#
# Note:
# SMB1 is disabled by default. This means clients without support for SMB2 or
# SMB3 are no longer able to connect to smbd (by default).

[global]
    workgroup = WORKGROUP
    security = user

    passdb backend = tdbsam

    printing = cups
    printcap name = cups
    load printers = yes
    cups options = raw

    smb3 unix extensions = yes

    # Install samba-usershares package for support
    include = /etc/samba/usershares.conf

[homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes

[printers]
    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @printadmin root
    force group = @printadmin
    create mask = 0664
    directory mask = 0775

[SharedStuff]

[Movies]
   path = /mnt/Movies/Videos/
   browsable = yes
   writeable = yes
   read only = no
   guest ok = no
   valid users=jyaku

And no I'm trying to only keep it simple and only start with 1 folder to share for now.. can add more later or just add subfolders later if needed
well, what happens when you click on the user id share?