LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-25-2005, 06:26 PM   #1
kodax
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Rep: Reputation: 0
Can`t connect to Samba from XP


I`ve configured the smb.conf in all the ways I can think of, but even though I see my server (running fedora 4) listed in the Windows-network workgroup, I still can`t get in to it.
I`m a newbie, so I guess it is a simple mistake, but haven`t figured it out by reading around on several pages
Anybody?
 
Old 12-26-2005, 11:46 AM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
What happens when you access the computer through the workgroup?
Does it give a password prompt? Can you login?
Do you have SELinux or a firewall set up on Fedora that prevents Samba?
 
Old 12-27-2005, 12:43 PM   #3
kodax
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Original Poster
Rep: Reputation: 0
In Windows Explorer I get the error message:
"\\Fedora is not accessible. You might not have permission to use this network resource. Contact...

The network path was not found."

I only have SELinux running in warning-mode, and don't know about a firewall. (I installed Fedora pretty "out-of-the-box" as a server.)
 
Old 12-27-2005, 01:54 PM   #4
Gsidious
Member
 
Registered: Nov 2005
Location: Oregon
Distribution: Ubuntu
Posts: 64

Rep: Reputation: 17
You can run "system-config-security" to check on whether the Firewall is enabled/disabled, and also how SELinux is configured, (firewall will be enabled by default and may be blocking the needed ports). Also you can use the command "testparm" to check your smb.conf file for errors & configuration. Also there is "system-config-samba" for a nice GUI front-end to the smb.conf file. You might also check the samba log files in "/var/log/samba/" for more clues as to why it is failing to connect.
 
Old 12-27-2005, 01:59 PM   #5
kodax
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Could you explain how to do this "system-config-security" in command-mode, please?
 
Old 12-27-2005, 02:20 PM   #6
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
Do a
Code:
#service --status-all
To get a full report of what services are running on your box. You'll also get the firewall rules

Hope this helps
 
Old 12-27-2005, 02:35 PM   #7
kodax
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Got it!
It was the firewall.
I configured it by running the command "system-config-securitylevel", and then allowing all traffic in eth0. Guess this is allright as long as I have a ruter with firewall.

(The "service"-commmand is not found..neither "ifconfig". Are these not common commands in fedora-linux running bash?)
 
Old 12-27-2005, 05:45 PM   #8
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
There commands are in /sbin which is not in the default $PATH for regular user accounts. You need to be root to run those. I'm not sure if exporting a new path will allow these commands to run correctly under a regular user account priviliges.

Try and tweak iptables more specifically to your needs, it's not usually good practice to allow ALL traffic from a device. If you need some pointers i'm sure aynone here would be glad to help. Just my two cents
 
Old 12-29-2005, 01:13 PM   #9
kodax
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Turned out that when I was logged on as "root" through a regular account, I cuold not run those commands, but when I logged on directly as "root" it was ok..bit strange, not? But the important thing is that I now can do the magic, thanks guys
 
Old 12-29-2005, 01:28 PM   #10
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
try
Code:
$su -
instead of
Code:
$su
when switching to the root account, this allows you to work in root's environment.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to Samba swan2925 Linux - Software 0 04-29-2005 12:41 AM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Samba: Can't connect Thomas M. Linux - Networking 4 03-18-2004 05:19 PM
Can't connect via Samba vinny0 Linux - Software 4 01-28-2004 12:55 PM
Mandrake (Samba) Client Can't Connect To Samba Buick Linux - Networking 1 01-21-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration