LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2005, 09:49 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Rep: Reputation: 31
Samba / Win XP problem


I'm running MDK 9.2 (I'll upgrade later) .... just reinstalled since I'm trying to create a clean build again.

I'm trying to set up file sharing (this box is intended to be a file server / web server). I got samba set up, and have been going through the tutorials, but I've got to be missing something pretty simple.

My smb.conf file looks like this:

[global]
encrypt passwords = yes
workgroup = bradford

[test]
path = /var/www/
read only = no
guest ok = yes

I've got smb running, the smbpasswd file is there and appears to be ok, etc, etc, but I can't even see the machine from network neighborhood on the XP box.

I also seem to recall there was a way to test samba from the server box (to log imitating the windows box, to at least test the configuration is working), but I can't find it this time.

I disabled the firewall on the windows box to check that, and I never installed one on the linux box. My hosts.allow file also includes the network that those are on.

Any ideas would be appreciated.
 
Old 02-20-2005, 11:24 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
1'st serverside test

smbclient -L <servername>

should request passwd
just hit enter should display info and shares

now try to connect as a user

smbclient '//<servername>/var/www/' -u <userid>

might be eisier to use
'//<servername>/homes'
as a test to avoid permission issues
you might need a blank [homes]
section in the config

hurray for the simple config to start
try
wins support = true
(somebody has to be the wins server) so either samba or
wins server = 192.168.0.9
and possibly
allow hosts = 192.168.0.2 192.168.0.1 (use the actual addresses from your network not mine)
 
Old 02-21-2005, 12:16 AM   #3
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
Well, I found another problem, then. I don't seem to have smbclient on this box somehow. Ran find to try and find it ... even ran a find from the root directory and did a grep for smbclient ... nothing anywhere on the box.

Did the change to the smb.conf, though, as a test, and no luck.

Possibly related(?) ... it seems name resolving isn't working on my box either. I can ping most boxes on my network, but not the windows ones ... and I can't ping sites like google.com. Can't even ping my own IP external address.

Strangely, though, my webserver is still working perfectly through all this ... so something can apparently access this box.
 
  


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
problem logging to Samba 3.0.6 from win Xp Pro carlos.a.lopez Linux - Networking 0 12-06-2004 09:28 AM
Samba 2.2.8 MDK 9.2 / Win XP Pro interface problem JohnLocke Linux - Networking 13 07-24-2004 03:57 PM
Problem mounting Win XP partition with samba Aneb Linux - Software 2 03-09-2004 08:25 AM
Win->Samba works, Samba->Win does'nt work outburst Linux - Networking 2 10-30-2003 08:31 AM
Problem browsing a samba machine from Win c0p0n Linux - Networking 2 08-02-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 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