Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SAMBA & WinXP - My blood boils in anger!
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
kevinp
n00b
n00b


Joined: 21 Nov 2003
Posts: 46

PostPosted: Sun Aug 29, 2004 6:55 am    Post subject: SAMBA & WinXP - My blood boils in anger! Reply with quote

Hello again. Once again, I have a problem. A very annoying problem! I've spent the better part of four long months trying to get SAMBA to work with WinXP SP1. Well, I think you all can see where I'm going here....

Before I start, I have one question: Has MS deliberatly filtered out SAMBA ?? Unfortunetly, I don' thave another computer here with a different OS to see if SAMBA is working and it's just XP being all jackassy. My log screen says all is good. WinXP says it doesn't see anything.

Below is my smb.conf:
Code:
[global]
workgroup = home
netbios name = webserver
#encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
security = share
password server = none


[homes]
comment = Home Directories
read only = no
browseable = no
path = /home
#socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[drive1]
comment = drive 1
path = /mnt/hdb1
browseable = yes
write list = siggie, root

[drive2]
comment = drive 2
path = /mnt/hdd1
browseable = yes
write list = siggie, root

[web]
comment = webserver files
path = /var/www/localhost
browseable = yes
write list = root


My overal goal was to provide a simple SAMBA server that just stored all my MP3s and crap. It's turned to be much more complicated. Any help would be greatly appreciated. I'll provide anything that is needed... excluding passwords :twisted: lol
Back to top
View user's profile Send private message
kevinp
n00b
n00b


Joined: 21 Nov 2003
Posts: 46

PostPosted: Sun Aug 29, 2004 7:02 am    Post subject: Reply with quote

oh yeah, forgot to mention. I did searches thru here and never found anything that corilated to my situation. =/
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sun Aug 29, 2004 7:23 am    Post subject: Reply with quote

I've seen XP do this to win9x machines, and even NT4 machines.

Here are a few things I would try/check:

((Going to assume the server is accessible, no firewall to block pings/ports))
If you leave both running for 48 hours does it show up then?
Can you run \\webserver\web\ or \\ip\web\ ?(redundant)
Can you try telnetting to it on port 135? It should open, but it probably won't respond.
Check your hosts file? Try adding both boxes to both machines files.
Tried re-emerging samba?

I don't know if you've tried any of that, but I hope this might help you root out the problem.

--beugh

PS: I think encrypt passwords is supposed to be set to yes. I'd maybe comment the password server line too.
Back to top
View user's profile Send private message
wood
n00b
n00b


Joined: 06 Nov 2003
Posts: 30

PostPosted: Mon Aug 30, 2004 12:26 pm    Post subject: Hey Reply with quote

1. Is NetBios enabled in your TCP connection in the Windows machine?
2. Can you acess it manually? like: \\ip_of_server\
3. Use a samba browser in localhost (in the server) to see if samba is really working correctly. In kde for example: smb://localhost

That is most likely a samba config problem if the above does not work.

Cheers,
woodstock
Back to top
View user's profile Send private message
lothar
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2004
Posts: 87
Location: Norway

PostPosted: Mon Aug 30, 2004 12:51 pm    Post subject: Reply with quote

Try setting security to share and make a user on the linux box with the same name and password as on the windows computer

smb.conf:
Code:

[global]
security = user

How to make a samba-user:
Code:

smbpasswd -a windows-username

You will be prompted for password.
Back to top
View user's profile Send private message
ticho
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2003
Posts: 138
Location: yes

PostPosted: Mon Aug 30, 2004 1:09 pm    Post subject: Reply with quote

That won't help to make winxp _see_ the server, as it's a different service.

I would try explicitly turning on options "local master, "domain master" and "preferred master". Also, set "os level" to something higher than 40.

Point of this is, that you can never trust winXP to be a good workgroup master.
_________________
The more you depend on forces outside yourself, the more you are dominated by them.
Back to top
View user's profile Send private message
ticho
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2003
Posts: 138
Location: yes

PostPosted: Mon Aug 30, 2004 1:11 pm    Post subject: Reply with quote

Oh, and tell samba to also be a WINS server (windows name resolution): options "wins support" and "wins proxy" set to "on"
_________________
The more you depend on forces outside yourself, the more you are dominated by them.
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Mon Aug 30, 2004 1:22 pm    Post subject: Reply with quote

Repeating a few things other people have already posted
1. Make sure you have no firewall on the XP box (once you get it working you can think about turning the firewall on) this includes the windows ICF.

2. In your smb.conf uncomment the encrypt passwords line, passwords need to be encrypted for windows XP

3. Change security to user, this is the way all Windows NT based systems work

4. Try turning on local master prefered master and domain master

5. Enable the wins server on samba (wins support = yes) and tell the XP box where it can find the wins server

6. Try accessing the shares on the samba server from the run box on the xp machine using the IP address (e.g. \\192.168.0.10\web)

7. Get rid of the line password server = none I don't know what you are trying to achieve with it

8. Make sure you have set up the siggie and root users using smbpasswd
Back to top
View user's profile Send private message
passenger 57
n00b
n00b


Joined: 11 Mar 2003
Posts: 29
Location: Stuttgart

PostPosted: Fri Sep 03, 2004 8:36 pm    Post subject: Reply with quote

you have to turn off encrypted passwords in xp -registry.
we use xp as clients and gentoo as File-servers (samba 3.0)



Configuring the Windows XP Client:

Notes : Only Windows XP-Professional Edition can join the Domain, it does not work for WindowsXP-Home Edition.

STEPS:

1) Make sure that the workstation belonged to the same workgroup as the server and have a fixed IP address and hostname assigned.

Think this is your step

2) Change the registry entry, run the command regedt32 and do the below
a) RequireSignOrSeal Registry hack

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netlogon\parameters
"RequireSignOrSeal"=dword:00000000

b) Use the Registry Editor and edit the
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\CompatibleRUPSecurity to have the DWORD value of 1

3) Use the Group Policy Editor (gpedit.msc) and enable "Computer Configuration\Administrative Templates\System\User Profiles\Do not check for user ownership of Roaming Profile Folders".

4) Go to MyComputer right click Properties. Go to Change and click on Domain and enter the domain-name you want to join. When joining the domain for the First time enter userid as root and give the samba password. Make sure there is an entry for the root in the smbpasswd (samba password) file.

5) Reboot and then the changes will be effective.

source
http://www.ccs.uky.edu/docs/samba.htm

HTH :lol:[/b]
_________________
Registered Linux User #363397
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Sat Sep 04, 2004 8:54 am    Post subject: Reply with quote

why bother turning off password encryption, when you can turn it on on the server? That's pointless

Also your solution has nothing to do with the question, the poster wasn't asking how you join an XP client to a samba domain.
Back to top
View user's profile Send private message
passenger 57
n00b
n00b


Joined: 11 Mar 2003
Posts: 29
Location: Stuttgart

PostPosted: Sat Sep 04, 2004 10:06 am    Post subject: Reply with quote

please forgive me, i'm a german user and my english is not the best.

:(
_________________
Registered Linux User #363397
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sat Sep 04, 2004 12:01 pm    Post subject: Reply with quote

Switch off "simple file sharing" in XP. (control panel->folder options).
With simple filesharing on a XP mashine tend to only talk to win98 and other XP machines with the sfs switched on, and connect only to shares that does not require any username or passwords!

If you're able to get to smb://localhost from the linuxmachine, and still not able to connect from XP with sfs off, try the universal windows fix: reinstall
Back to top
View user's profile Send private message
gabo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2004
Posts: 134
Location: Lyon, France

PostPosted: Sat Sep 04, 2004 2:25 pm    Post subject: Reply with quote

verify that the xp computer is in your /etc/hosts config file.

I had the same problem and it was just samba not finding others computer on the network.
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sun Sep 05, 2004 11:01 am    Post subject: Reply with quote

Actually I just had a similar problem - w2k computers said \\server didn't exist. However I could get into \\192.168.1.1 (server ip). Restarted samba, and the w2k computers and everything was working again.
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