Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th February 2006, 10:54 PM
thylacine222 Offline
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?
Reply With Quote
  #2  
Old 21st February 2006, 11:48 AM
b00st Offline
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 .
Reply With Quote
  #3  
Old 21st February 2006, 01:53 PM
thylacine222 Offline
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?
Reply With Quote
  #4  
Old 21st February 2006, 02:03 PM
b00st Offline
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".
Reply With Quote
  #5  
Old 21st February 2006, 02:09 PM
thylacine222 Offline
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?
Reply With Quote
  #6  
Old 21st February 2006, 02:25 PM
b00st Offline
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.
Reply With Quote
  #7  
Old 21st February 2006, 03:38 PM
thylacine222 Offline
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.
Reply With Quote
  #8  
Old 21st February 2006, 04:00 PM
b00st Offline
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".
Reply With Quote
  #9  
Old 21st February 2006, 04:11 PM
thylacine222 Offline
Registered User
 
Join Date: Jun 2005
Posts: 35
I did have that checked. Well, thanks anyway, I feel like I made some progress.
Reply With Quote
  #10  
Old 21st February 2006, 04:23 PM
neilloffhagen Offline
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
Reply With Quote
  #11  
Old 21st February 2006, 04:39 PM
thylacine222 Offline
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.
Reply With Quote
  #12  
Old 21st February 2006, 05:01 PM
gavinw6662 Offline
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
Reply With Quote
  #13  
Old 21st February 2006, 06:28 PM
b00st Offline
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.
Reply With Quote
Reply

Tags
access, files, linux, samba, versa, vice, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I share Windows files with linux and vice versa? Raptor36 Servers & Networking 14 17th March 2009 07:00 AM
How do I give subset of users full access to 'joes' account, but not vice-versa? CelticBlues Using Fedora 1 10th June 2008 12:12 AM
How can I cut-and-paste from emacs to shell or vice versa? yinglcs Using Fedora 7 18th May 2007 01:47 AM
How can i execute softwares in a local user that was installed in root.And vice versa orbknives Using Fedora 0 11th February 2005 07:08 AM
convert Traditional to Simplified Chinese & vice versa tcma Using Fedora 0 20th December 2004 10:56 PM


Current GMT-time: 10:28 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat