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

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

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Interesting..

sudo chmod 775 /mnt/Movies/Downloaded Movies/

chmod: cannot access '/mnt/Movies/Downloaded': No such file or directory
chmod: cannot access 'Movies': No such file or directory

Hmm have to rename the folder so no spaces.. LOL.

Brb going to do that on the windows side first

Wut, nah man just put quotes around the path
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
I can't explain it.. it's like sudo chmod commands don't do anything..

I type it in, go back to folder, try to share, and it says permissions need to be changed again.. and it never actually changes
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
I tried doing it as root..

sudo su root

root@Earth:/home/jyaku# sudo chmod 771 "/mnt/Movies"

root@Earth:/home/jyaku# sudo chmod 775 "/mnt/Movies/Downloaded Movies"

hope it works.. rebooting
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
Still seems to be giving me that error.. hmm

I didn't know setting up a shared folder on Samba would be this hard.. is it Fedora or it's just this hard in general?
 

manly

Lifer
Jan 25, 2000
13,259
4,034
136
Samba was never really intended to be user friendly for consumers. There are entire books written about Samba, for Linux sysadmins.

In general, you have to accrue Linux knowledge over time before things feel comfortable. Everybody just wants things "to work," but IMO you're trying to run before you walk.

Use your favorite search engine and hunt for solutions/information.

Better yet, pick up a good book (or two).

 
  • Like
Reactions: ch33zw1z

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Still seems to be giving me that error.. hmm

I didn't know setting up a shared folder on Samba would be this hard.. is it Fedora or it's just this hard in general?

The error where root can't update permissions? do you still have the gui open showing you what permissions needed updated? If yes, close it.
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
The error where root can't update permissions? do you still have the gui open showing you what permissions needed updated? If yes, close it.

Yep close, it reboot the system and it still shows I need more permissions.

I just can't seem to get that folder to share even after chmod as root user.
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Yep close, it reboot the system and it still shows I need more permissions.

I just can't seem to get that folder to share even after chmod as root user.
so you close the menu and then try to update permissions?
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
so you close the menu and then try to update permissions?
Think I did but let me try again just incase I didn't do it correctly the first time.

Will try with no dolphin folders open at all and as root user.

Do you want me to reboot afterwards or just stay on and see if the folders become visible?
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Think I did but let me try again just incase I didn't do it correctly the first time.

Will try with no dolphin folders open at all and as root user.

Do you want me to reboot afterwards or just stay on and see if the folders become visible?

see if the permissions changed for the folder

where are the folders not visible
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
I did that and it still says it needs additional permissions for sharing to work..

Screenshot_20250728_113438.png
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
I did that and it still says it needs additional permissions for sharing to work..

View attachment 127849
run a ls command such as "ls -al" to display the folder permissions on cli.

on the windows box, go to the start menu and type "Run" - this will bring up the run menu. Next, type the IP of the Linux system like this: \\192.168.x.xxx <---- replace x's with IP of linux system. This is how I open my samba share. for me, I have 3 folders shared and show up. I can right click one of them and do "Map Network Drive" to create a permanent drive letter mapping for the share.

my shares are all 755 folders with my user as the Owner.
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
run a ls command such as "ls -al" to display the folder permissions on cli.

on the windows box, go to the start menu and type "Run" - this will bring up the run menu. Next, type the IP of the Linux system like this: \\192.168.x.xxx <---- replace x's with IP of linux system. This is how I open my samba share. for me, I have 3 folders shared and show up. I can right click one of them and do "Map Network Drive" to create a permanent drive letter mapping for the share.

my shares are all 755 folders with my user as the Owner.

Windows cannot find 192.168.1.235

Make sure you typed it correctly
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
Windows cannot find 192.168.1.235

Make sure you typed it correctly
ok, if you can still ping it ok, then it's software standing in your way. A firewall on one or both of the systems is blocking it. You can try the cifs utils in the link above, if that doesn't fix it then I would search how to allow samba thru fedora's firewall. Sometimes it's easier just to disable a firewall and test again, if it works then you know it's something the firewall was interfering with. Re-enable the firewall and correct the configuration.
 

Indus

Lifer
May 11, 2002
15,964
11,108
136
ok, if you can still ping it ok, then it's software standing in your way. A firewall on one or both of the systems is blocking it. You can try the cifs utils in the link above, if that doesn't fix it then I would search how to allow samba thru fedora's firewall

I'm wondering if the firewall reset as well and am thinking of changing it to permanent over runtime.

Screenshot_20250728_115943.png

Anyways these are my options.. for my home wifi network.. I should change it to public to trusted and check on every service right?

or is there a better way?


Which zones are available?​

These are the zones provided by firewalld sorted according to the default trust level of the zones from untrusted to trusted:

🔗 drop​

Any incoming network packets are dropped, there is no reply. Only outgoing network connections are possible.

🔗 block​

Any incoming network connections are rejected with an icmp-host-prohibited message for IPv4 and icmp6-adm-prohibited for IPv6. Only network connections initiated within this system are possible.

🔗 public​

For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 external​

For use on external networks with masquerading enabled especially for routers. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 dmz​

For computers in your demilitarized zone that are publicly-accessible with limited access to your internal network. Only selected incoming connections are accepted.

🔗 work​

For use in work areas. You mostly trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 home​

For use in home areas. You mostly trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 internal​

For use on internal networks. You mostly trust the other computers on the networks to not harm your computer. Only selected incoming connections are accepted.

🔗 trusted​

All network connections are accepted.
 

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
I'm wondering if the firewall reset as well and am thinking of changing it to permanent over runtime.

View attachment 127855

Anyways these are my options.. for my home wifi network.. I should change it to public to trusted and check on every service right?

or is there a better way?


Which zones are available?​

These are the zones provided by firewalld sorted according to the default trust level of the zones from untrusted to trusted:

🔗 drop​

Any incoming network packets are dropped, there is no reply. Only outgoing network connections are possible.

🔗 block​

Any incoming network connections are rejected with an icmp-host-prohibited message for IPv4 and icmp6-adm-prohibited for IPv6. Only network connections initiated within this system are possible.

🔗 public​

For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 external​

For use on external networks with masquerading enabled especially for routers. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 dmz​

For computers in your demilitarized zone that are publicly-accessible with limited access to your internal network. Only selected incoming connections are accepted.

🔗 work​

For use in work areas. You mostly trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 home​

For use in home areas. You mostly trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.

🔗 internal​

For use on internal networks. You mostly trust the other computers on the networks to not harm your computer. Only selected incoming connections are accepted.

🔗 trusted​

All network connections are accepted.

Interesting new menu's coming with Linux, I'm learning here as well. I would use either Home or Internal, and ensure samba is allowed or "checked" in the services list
 
  • Like
Reactions: Indus

manly

Lifer
Jan 25, 2000
13,259
4,034
136
Interesting new menu's coming with Linux, I'm learning here as well. I would use either Home or Internal, and ensure samba is allowed or "checked" in the services list
yeah I'm not sure that having ten different firewall zones is reasonable for the average consumer.

Assuming standard Fedora, the samba service must be allowed through (obviously). In a typical home setup, a software firewall is probably unnecessary. The WiFi router typically is the firewall.


For named "browsing," the nmb service needs to be running.
 
  • Like
Reactions: Indus

Indus

Lifer
May 11, 2002
15,964
11,108
136
I ended up having a severe headache and low blood sugar and went and got some rest. I'll figure this out when I feel a little better.. trying to take it a bit easy today.

But if there are other ideas of how I can get the share to work.. please let me know.

Basically instead of a shared folder on the root or / NVME drive.. I'm trying to share a folder on a SATA drive and not succeeding.
 

Indus

Lifer
May 11, 2002
15,964
11,108
136

Interesting bit about this..

I installed it on my ultramarine and the wife's lmde systems but it wouldn't work.

Then I thought about it that maybe the ports aren't open in the firewall of both systems.. and I set an exception on both.. and it worked.

Strangely it still doesn't see the other comp but the file sending did work.. atleast on linux pc's.
 
  • Like
Reactions: igor_kavinski

ch33zw1z

Lifer
Nov 4, 2004
39,749
20,323
146
yeah I'm not sure that having ten different firewall zones is reasonable for the average consumer.

Assuming standard Fedora, the samba service must be allowed through (obviously). In a typical home setup, a software firewall is probably unnecessary. The WiFi router typically is the firewall.


For named "browsing," the nmb service needs to be running.

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.