Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
winxp + samba = no go, please HELP ME!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ratbert90
Apprentice
Apprentice


Joined: 28 May 2003
Posts: 177

PostPosted: Mon Jun 02, 2003 5:09 pm    Post subject: winxp + samba = no go, please HELP ME! Reply with quote

I am at my wits end here..
samba wont read windowsxp! I have tried everything, including changing the registry for windowsXP

It just wont see it!
I have dissabled wins support because I have heard that it is not worth the time getting it to work.

heres my smb.conf file:

[ global]
workgroup = WORKGROUP
netbios name = Linux
server string = %h server (Samba %v)
encrypt passwords = Yes
smb passwd file = /etc/samba/sambapasswd
syslog = 0
max log size = 1000
log file = /var/log/samba/samba.log.%m
log level = 2

socket options = IPTOS_LOWDELAY \
TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
dns proxy = No
invalid users = root
interfaces = eth0 192.168.0.0/255.255.255.0 127.0.0.1/24
bind interfaces only = yes


[homes]
comment = Home Directories
read only = No
create mask = 0700
directory mask = 0700
browseable = Yes

[data]
comment = Data Files and Backups
path = /home/network
read only = No
create mask = 0775
directory mask = 0775
browseable = Yes

[tmp]
path = /tmp
read only = no
create mask = 0775
directory mask = 0775
browseable = Yes

[public]
path = /home/networking
read only = No
guest ok = yes
writeable = yes
hosts allow = 192.168.1

any help?
_________________
Ph33R mY l337 H|_|R|) 0F G|\||_|Z!!
Back to top
View user's profile Send private message
shadow255
Guru
Guru


Joined: 04 Apr 2003
Posts: 412

PostPosted: Mon Jun 02, 2003 6:02 pm    Post subject: Reply with quote

The beginning of your post sounds like you're saying that you can't read files/folders located on the Windows XP machine - did you mean the other way around? If you're trying to mount SMB volumes located on a Windows XP computer, smb.conf has absolutely nothing to do with it.

If you actually meant that your Windows XP computer is unable to browse/access the SAMBA shares you've set up on your Linux computer, then I'd recommend that you make some simplifications in the [global] section of your smb.conf. Here's how I'd change it:
Code:
[ global]
workgroup = WORKGROUP
netbios name = Linux
server string = %h server (Samba %v)
encrypt passwords = Yes
#smb passwd file = /etc/samba/sambapasswd
syslog = 0
max log size = 1000
log file = /var/log/samba/samba.log.%m
log level = 2

#socket options = IPTOS_LOWDELAY \
#TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
#dns proxy = No
invalid users = root
#interfaces = eth0 192.168.0.0/255.255.255.0 127.0.0.1/24
interfaces = 192.168.0.0/255.255.255.0 127.0.0.1/24
#bind interfaces only = yes

I'm basing these changes on my working setup with a Windows XP Home system accessing SAMBA shares from a Linux box. I'm not trying to do any of the logging you are, so it might help even to comment those lines out as well until you can determine if it will work at all. What you might want to do is make a separate testing smb.conf file with this stripped-down [global] section and only one shared directory (non-critical files only).

One more thing: at the end of your smb.conf is a hosts allow directive which seems to be applied only to the final share, but it could be messing things up. 192.168.1 is masked off from your interfaces in the [global] section, unless it's valid for eth0 (which I suspected is redundant, but maybe not).
_________________
Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy
Back to top
View user's profile Send private message
ratbert90
Apprentice
Apprentice


Joined: 28 May 2003
Posts: 177

PostPosted: Mon Jun 02, 2003 6:09 pm    Post subject: Reply with quote

Indeed what I ment was that windows couldnt see my linux machine :)
I tried your config and restarted samba and still nothing :(

My firewall is down on both machines also so they arent a problem

any more help would be apreciated!
_________________
Ph33R mY l337 H|_|R|) 0F G|\||_|Z!!
Back to top
View user's profile Send private message
shadow255
Guru
Guru


Joined: 04 Apr 2003
Posts: 412

PostPosted: Mon Jun 02, 2003 6:29 pm    Post subject: Reply with quote

One more thing: have you verified that nmbd is running as well as smbd? I've seen that create problems in this arena too. Outside of that, it would be good to have you verify that the workgroup name and ip address settings on the Windows XP computer are in line with your smb.conf settings. You can do this quickly in a command-prompt window on the XP machine with the following:
Code:
<prompt>net config workstation
<prompt>ipconfig /all

Beyond that, if WORKGROUP is the workgroup name reported and the ip address is 192.168.0.x on the XP machine, I probably can't offer any additional help. Good luck!
_________________
Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy
Back to top
View user's profile Send private message
slugman
n00b
n00b


Joined: 05 Oct 2002
Posts: 24
Location: Michigan

PostPosted: Mon Jun 02, 2003 8:48 pm    Post subject: Reply with quote

um, maybe a stupid question but did you remember to add samba users to your system?

Code:
smbpasswd -a username password


I know I had this problem before too, as names are not automatically converted to samba.

also see what happens when you try to connect to your linux box from your linux box.

Code:
smbclient -L Linux


It should list some useful info, like computers recognized in the workgroup and your shares.
Back to top
View user's profile Send private message
uzik
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 257

PostPosted: Mon Jun 02, 2003 9:27 pm    Post subject: Reply with quote

OK,

by 'can't see my linux machine' do you mean it's not in the network
neighborhood? On your windows machine try mapping a drive and put
in:

\\YOUR.LINUX.MACHINE.IP\public

You can mount drives that aren't shown in the neighborhood.
Your firewall(s) may be blocking the broadcast messages from
your linux machine announcing its presence on the network.
(They go out to the highest IP address on the subnet you're on,
and on a different port, 139)

* Make sure your firewall allows port 137 to pass through
in and out or you'll never get it to work.

* Add user names to the smbpasswd file, using the smbpasswd
program.

* try using a WINDOWS login that's all lower case and less than
8 characters. This can sometimes not match what Linux is looking
for.

* turn the logging ON for samba. The look in the logs, they will
help you figure out a lot of problems.
Back to top
View user's profile Send private message
ratbert90
Apprentice
Apprentice


Joined: 28 May 2003
Posts: 177

PostPosted: Mon Jun 02, 2003 10:30 pm    Post subject: Reply with quote

ok, I can connect to myself via the smbclient -L Linux command.
I still cant map, see, or connect to my samba box on windows xp :(

Although I can see myself.
Do I need to mount anything at all?
_________________
Ph33R mY l337 H|_|R|) 0F G|\||_|Z!!
Back to top
View user's profile Send private message
Hideki
n00b
n00b


Joined: 09 Mar 2003
Posts: 74

PostPosted: Tue Jun 03, 2003 1:00 am    Post subject: Reply with quote

I bet that you don't have
security = share/user/ etc...

Look in the smb.conf manual about "security" directive.
Back to top
View user's profile Send private message
m1kee
n00b
n00b


Joined: 17 Dec 2002
Posts: 9

PostPosted: Tue Jun 03, 2003 11:05 am    Post subject: Reply with quote

Have a read here: http://hr.uoregon.edu/davidrl/samba/

If you still can't get ot to work drop a line in this thread ;)

hth
_________________
delirium tremens
Back to top
View user's profile Send private message
drakos7
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 294
Location: Rockville, MD, USA, Earth, Sol

PostPosted: Tue Jun 03, 2003 7:34 pm    Post subject: Reply with quote

Have you checked out the signed or sealed issue?
google samba signorseal
Back to top
View user's profile Send private message
ratbert90
Apprentice
Apprentice


Joined: 28 May 2003
Posts: 177

PostPosted: Wed Jun 04, 2003 3:05 am    Post subject: Reply with quote

ok, in my log files there are absolutly no errors. and my security is set pretty low and the folders are chmodded :o

And yet windows is still being gay :(
_________________
Ph33R mY l337 H|_|R|) 0F G|\||_|Z!!
Back to top
View user's profile Send private message
ratbert90
Apprentice
Apprentice


Joined: 28 May 2003
Posts: 177

PostPosted: Wed Jun 04, 2003 3:05 am    Post subject: Reply with quote

ok, in my log files there are absolutly no errors. and my security is set pretty low and the folders are chmodded :o

And yet windows is still being gay :(
_________________
Ph33R mY l337 H|_|R|) 0F G|\||_|Z!!
Back to top
View user's profile Send private message
ratbert90
Apprentice
Apprentice


Joined: 28 May 2003
Posts: 177

PostPosted: Wed Jun 04, 2003 4:26 pm    Post subject: Reply with quote

ok, after a few days of checking the logs and getting everything write, The logs display NO errors whatsoever, windows still cant see/connect to me!

heres the log file.

GetSMBMachines:smbclient -L LINUX -U% -W MSHOME -d1
Domain=[MSHOME] OS=[Unix] Server=[Samba 2.2.8a]

Sharename Type Comment
--------- ---- -------
tmp Disk Temporary file space
public Disk Public Stuff
fredsdir Disk Freds Service
pchome Disk PC Directories
myshare Disk more suff
data Disk
IPC$ IPC IPC Service (File Server)
ADMIN$ Disk IPC Service (File Server)

Server Comment
--------- -------
LINUX File Server

any ideas?
_________________
Ph33R mY l337 H|_|R|) 0F G|\||_|Z!!
Back to top
View user's profile Send private message
slugman
n00b
n00b


Joined: 05 Oct 2002
Posts: 24
Location: Michigan

PostPosted: Wed Jun 04, 2003 6:24 pm    Post subject: Reply with quote

A few problems I've had with Samba and WinXP

1. having 2 NIC on the windows machine dosen't work (i.e. ethernet and Wireless card)
2. Using Japanese language dosen't let you use netbios name resolution, try using //samba.machine.IP.address/sharename
3. firewalls really mess things up (unless your sure that you configured it correctly)
4. try playing with windows network configuration (network device properties =>TCP/IP properties=>General->advanced=>WINS->NETBIOS-(switch to) Enable NETBIOS over TCP/IP {Although Default should work} (remember to restart)
5. Make sure you didn't actually block access to your machine in the smb.conf file. (you may have entered the IP addresses incorrectly)


Try walking through these tests, post back which ones work and which don't.

http://hr.uoregon.edu/davidrl/samba/samba-diagnose.html#CHECKLIST
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum