 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

20th February 2006, 10:54 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 35

|
|
|
Linux can access windows files through Samba, but not vice versa.
Hi, I'm trying to set up my Samba so that I can share files between my PC and Linux. I'm on Fedora 4, updated last around 2/5/06. Thi s is just a regular network over Wifi and Wired going through a router. I've gotten far enough that I can connect to the shares on the PC from the Samba computer, but I can't connect from the PC to the Linux computer. Here's my smb.conf:
[global]
workgroup = Mhs
netbios name = Tvcomputer
hosts allow = 192.168.2.
[Video]
path = /video
comment = Video
public = yes
writable = yes
[mythtvdesktop]
path = /home/mythtv/Desktop
comment = mythtvDesktop
public = yes
writable = yes
In my Network Neighborhood on the Windows PC, I can see the computer as "Samba 3.0.version (Tvcomputer)" but when I try to open it, it says that it can not access it.
I have tried pinging from both the other Linux computer I have and the Windows PC, and both can not connect to the Samba computer. The Samba computer can ping to the Windows PC, however.
I was reading the Samba howto and it said something about configuring iptables, and the prospect of doing that scares me. Does anyone have any help?
|

21st February 2006, 11:48 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 264

|
|
You are in luck, I recently figured this out. The linux firewall is keeping windows form seeing correctly. Add these to your port forwarding in secutiry level (under system settings>security level then look for "other ports" field)
microsoft-ds:tcp, bootps:udp, domain:tcp, domain:udp, 1200:udp
This fixed my problem with windows not seeing linux shares, hope that helps  .
|

21st February 2006, 01:53 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 35

|
|
|
I'm actually not using KDE or Gnome, I'm using windowmaker, so can you please tell me what the name of the program that Redhat uses to do that?
|

21st February 2006, 02:03 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 264

|
|
|
this is what i got from looking via kde menu editor "/usr/bin/system-config-securitylevel" or simply "system-config-securitylevel".
|

21st February 2006, 02:09 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 35

|
|
|
Nope. Still nothing. I set the settings and it still doesn't allow me to access it from my Windows computer. Maybe I also have to add the other Samba ports as well?
|

21st February 2006, 02:25 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 264

|
|
Quote:
|
Originally Posted by thylacine222
Nope. Still nothing. I set the settings and it still doesn't allow me to access it from my Windows computer. Maybe I also have to add the other Samba ports as well?
|
Actually, restart both pc's( well just the linux box if you want) and it should pick each other up. It didn't automatically pick each other up when I first opened the ports.
edit: using system-config-samba, make sure you have that folder set to share rather than user, just incase it still doesn't work.
Last edited by b00st; 21st February 2006 at 02:41 PM.
|

21st February 2006, 03:38 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 35

|
|
|
OK, I did what you said, and the only difference it made was that it no longer says Samba 3.0versioninfoblahblah(Tvcomputer) in Network Neighborhood and now it simply says Tvcomputer.
Pinging still does not work from anywhere. I have changed the folders to shared and everything, but still, it doesn't work.
|

21st February 2006, 04:00 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 264

|
|
|
The last thing i can think of, in system-config-samba, for that share, check the properties (highlight it, then click properties button) and make sure that on the access tab, and set it to "allow access to everyone".
|

21st February 2006, 04:11 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 35

|
|
|
I did have that checked. Well, thanks anyway, I feel like I made some progress.
|

21st February 2006, 04:23 PM
|
|
Registered User
|
|
Join Date: Feb 2006
Location: Berkshire, UK
Posts: 123

|
|
One thing I haven't seen mentioned here is the samba user accounts? Have you created any? Either you need to set up samba to be fully open of you need to create the same user accounts in samba with the same passwords that you have in windows. So if you have a username of "john" you need to creare a smaba user called "john2 as well, with the same password as he has on the windows box.
Or you could try what we did to open the share up to all  Not too secure but it works
Try adding the following lines to your smb.conf file. Note any changes take a couple of minutes to take effect. First create an account called world and make that account owner of all the folder you want to share.
[global]
guest account = world
[share]
force user = world
|

21st February 2006, 04:39 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 35

|
|
|
I much rather would have Samba users, so I added users for all of the people that can access the shares. I'm waiting a few minutes for it to kick in to place, so we'll see, I guess.
I actually don't think that it has anything to do with Samba, as I still can't ping the Linux computer from the Windows one.
|

21st February 2006, 05:01 PM
|
|
Registered User
|
|
Join Date: Feb 2005
Age: 34
Posts: 1,281

|
|
|
if you did a default install of fedora with selinux turned on, it will prevent you from sharing /home directories. You need to enable this within the system-config-securitylevel panel (selinux, scroll down to smb daemon) or you can simply turn off selinux and not use it entirely (same screen).
__________________
I read your e-mail
|

21st February 2006, 06:28 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 264

|
|
Quote:
|
Originally Posted by gavinw6662
if you did a default install of fedora with selinux turned on, it will prevent you from sharing /home directories. You need to enable this within the system-config-securitylevel panel (selinux, scroll down to smb daemon) or you can simply turn off selinux and not use it entirely (same screen).
|
Yea, I totally forgot to ask about selinux. I have mines disable, it just causes too many headaches for me.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 10:28 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|