Hi All,
I've just installed Samba on a Linux box, and can see the Windows box attempting connections, but, when inputting the username/password, I keep getting the same user/pass prompt window. What should I troubleshoot for this? I gave the user/pass that is the same as the account on the Linux box, which has permissions to view the shared directory in /etc/samba/smb.conf. Cheers.
Mark Sargent Linux = Centos 4-3, IP = 10.0.0.3 Windows = XP, IP = 10.0.0.2
|-----Original Message----- |From: centos-bounces@centos.org [mailto:centos-bounces@centos.org]On |Subject: [CentOS] Can't Access Samba Running Linux Box From XP | |Hi All, | |I've just installed Samba on a Linux box, and can see the Windows box |attempting connections, but, when inputting the username/password, I |keep getting the same user/pass prompt window. What should I |troubleshoot for this? I gave the user/pass that is the same as the |account on the Linux box, which has permissions to view the shared |directory in /etc/samba/smb.conf. Cheers. | |Mark Sargent |Linux = Centos 4-3, IP = 10.0.0.3 |Windows = XP, IP = 10.0.0.2 | |_______________________________________________
Might also try ..
#smbpasswd -a <username>
Adds the user to the smb password list.
HTH.. Brian
Venom User wrote:
Might also try ..
#smbpasswd -a <username>
Adds the user to the smb password list.
Hi All,
thanx for that, as I seem to have progressed some. I now get an error stating that the path doesn't exist. It certainly does as I did a pwd, copied/pasted it into the smb.conf file. I chose, Connect using a different username, and input the username/password that exists on the Linux box, and that also has permissions to access in smb.conf and also has been added to smbpasswd now as you suggested. I see two logs, 10.0.0.1.log, which is empty, and home-hehbbzsuy7.log which mentions,
[Date omitted by me as I'm not coming from the offending box] smbd/service.c:make_connect(800) home-hehbbzsuy7 (10.0.0.1) couldn't find service home
I get that, because after first failing as racket/password, it gives a prompt to login as the Windows Hostname, which is not what I want.
Cheers.
Mark Sargent
Mark Sargent spake the following on 5/3/2006 6:15 AM:
Venom User wrote:
Might also try ..
#smbpasswd -a <username> Adds the user to the smb password list.
Hi All,
thanx for that, as I seem to have progressed some. I now get an error stating that the path doesn't exist. It certainly does as I did a pwd, copied/pasted it into the smb.conf file. I chose, Connect using a different username, and input the username/password that exists on the Linux box, and that also has permissions to access in smb.conf and also has been added to smbpasswd now as you suggested. I see two logs, 10.0.0.1.log, which is empty, and home-hehbbzsuy7.log which mentions,
[Date omitted by me as I'm not coming from the offending box] smbd/service.c:make_connect(800) home-hehbbzsuy7 (10.0.0.1) couldn't find service home
I get that, because after first failing as racket/password, it gives a prompt to login as the Windows Hostname, which is not what I want.
Cheers.
Mark Sargent
To access the share you have in the sample smb.conf earlier you would need; \servername\myshare
(You don't list a servername in your example)
On 5/3/06, Mark Sargent powderkeg@snow.email.ne.jp wrote:
Scott Silva wrote:
To access the share you have in the sample smb.conf earlier you would need; \servername\myshare
(You don't list a servername in your example)
Hi All,
no, I was doing this,
\10.0.0.3\PathToDirectory
is that wrong? Cheers.
Mark Sargent.
That's definitely wrong. It neets to be (if using the following example)
\10.0.0.3\myshare
ie use the samba share name, not path to directory.
---
[myshare] comment = Locally shared directory, Cisco path = /home/racket/downloads/cisco valid users = mark anne #user mark has ben added to Linux box with a password public = no writable = yes printable = no create mask = 0765
-- Collins Richey If you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for.
Collins Richey wrote:
That's definitely wrong. It neets to be (if using the following example)
\10.0.0.3\myshare
ie use the samba share name, not path to directory.
[myshare] comment = Locally shared directory, Cisco path = /home/racket/downloads/cisco valid users = mark anne #user mark has ben added to Linux box with a password public = no writable = yes printable = no create mask = 0765
Hi All,
thanx for that. I knew I was close, of some sort. Cheers.
Mark Sargent
Hi All,
more info on this,
#======================= Global Settings ===================================== [global]
# workgroup = NT-Domain-Name or Workgroup-Name workgroup = MSHOME #Same as windows box
# server string is the equivalent of the NT Description field server string = Samba Server
# This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the "loopback" interface. For more examples of the syntax see # the smb.conf man page hosts allow = 10.0.0.0/255.255.0.0 #correct subnet
# The following two entries demonstrate how to share a directory so that two # users can place files there that will be owned by the specific users. In this # setup, the directory should be writable by both users and should have the # sticky bit set on it to prevent abuse. Obviously this could be extended to # as many users as required. ;[myshare] comment = Locally shared directory, Cisco path = /home/racket/downloads/cisco valid users = mark anne #user mark has ben added to Linux box with a password public = no writable = yes printable = no create mask = 0765
Quick question; In Linux, the path has / but shoud I specify / or \ in the path in Map Network Drive in Windows? Also, when I first click Finish, I'm given a Connect to localhost.localdomain window with,
Connecting to 10.0.0.3 Username: mark Password:
which I then enter password, but, it fails and returns,
User name: HOME-HEHBBZSUYZ\mark #Windows box Hostname Password: ............
Why is that? Cheers.
Mark Sargent.
On Wed, 2006-05-03 at 20:34 +0900, Mark Sargent wrote:
Hi All,
more info on this,
#======================= Global Settings
[global]
# workgroup = NT-Domain-Name or Workgroup-Name workgroup = MSHOME #Same as windows box
# server string is the equivalent of the NT Description field server string = Samba Server
# This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the "loopback" interface. For more examples of the syntax see # the smb.conf man page hosts allow = 10.0.0.0/255.255.0.0 #correct subnet
# The following two entries demonstrate how to share a directory so that two # users can place files there that will be owned by the specific users. In this # setup, the directory should be writable by both users and should have the # sticky bit set on it to prevent abuse. Obviously this could be extended to # as many users as required. ;[myshare] comment = Locally shared directory, Cisco path = /home/racket/downloads/cisco valid users = mark anne #user mark has ben added to Linux box with a password public = no writable = yes printable = no create mask = 0765
Quick question; In Linux, the path has / but shoud I specify / or \ in the path in Map Network Drive in Windows? Also, when I first click Finish, I'm given a Connect to localhost.localdomain window with,
Connecting to 10.0.0.3 Username: mark Password:
which I then enter password, but, it fails and returns,
User name: HOME-HEHBBZSUYZ\mark #Windows box Hostname Password: ............
Why is that? Cheers.
Mark Sargent.
Lots of potential issues ...
1. Make sure you have ports 135-139 and 445 open on any Linux firewall to/from the windows machine.
2. If you have winXP firewall ... make sure that it is open on those ports as well ... or the 10.x.x.x network you are using is open.
Johnny Hughes wrote:
Lots of potential issues ...
- Make sure you have ports 135-139 and 445 open on any Linux firewall
to/from the windows machine.
Linux box is allowing all from 10.0.0.0/255.255.0.0
- If you have winXP firewall ... make sure that it is open on those
ports as well ... or the 10.x.x.x network you are using is open.
Have allowed File and Printer Sharing for 10.0.0.0/255.255.0 on all ports, thanx for the tip. Still, I get the same events happening. Cheers.
Mark Sargent