Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read samba shares on XP?

Status
Not open for further replies.

heintze

Programmer
Nov 19, 2005
61
US
When I log into my desktop running fedora core 4 I can say

mount -t smbfs //192.168.1.101/C$ /mnt/sales -o username=siegfried

and see the files on my notebook running XP Pro. Hurray.

However, on my notebook I can say

net use p: \\192.168.1.4\siegfried /user:siegfried password

and it says access denied. I don't know why. I'm sure that my passwords are correct.

I have used SWAT to configure my samba server.

The notebook can ping the desktop succesfully. I turned on "encrypt passwords". The windows notebook can see the "mygroup" default workgroup name in network neighborhood but when I double click on the "my group" icon there is a long pause and nothing happens. The netbios name is "BATTLE" and I tried using "BATTLE" instead of 192.168.1.4 on the "net use" command and that did not help.

I've also tried "net view" and that never worked.

What am I doing wrong?

Thanks,
Siegfried

Here is a fragment from the smb.conf file:

[siegfried]
comment = sieg's home directory
path = /home/siegfried
username = siegfried
valid users = siegfried, root
admin users = siegfried, root
write list = siegfried, root
read only = No
hosts allow = 192.168.1.101

Here is the smbusers file
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
siegfried = siegfried
 
Try the net use with out the /user switch. If the path is valid and samba is configured correctly it should prompt you for the username and pw. If it bombs out before prompting for a password, you have samba problems.
 
I think that cyoung is on the right track. If I remember correctly, Swat has trouble with creating samba users. Use smbpasswd instead. Also what is the Security level?
 
Thanks. I tried that on the linux machine: "smbpasswd -a siegfried" and I entered a password.

Then on the notebook I type "net use p: \\192.168.1.4\siegfried"
it then says
Enter the username for '192.168.1.4':
and I type "siegfried"
and then (after a long pause) it asks for the password and I type the password.

I get

"System error 53 has occurred."
The network path was not found.

I can ping it tho'.

Thanks -- any other ideas to try?

What does "post the global" mean?
How do I check the security level?

Thanks,
Siegfried
 
Are you sure that your username/password are the same? The case has to be the same.

Also, you may want to go read the documentation at on connecting XP to samba.
 
Do you also have a local account on that linux box where samba is running? With SuSE 9 I had to setup both a local account AND a samba account with the same user/pass.
 
Yes I have a local account. I've added the siegfried account to both fedora core 4 and samba with the same password. I used smbpassword as described in a previous post (above).

Thanks,
Siegfried


# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/11/19 23:58:35

# Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[siegfried]
comment = sieg's home directory
path = /home/siegfried
username = siegfried
valid users = siegfried, root
admin users = siegfried, root
write list = siegfried, root
read only = No
hosts allow = 192.168.1.101
 
did you "enable" the user with smbpasswd?

smbpasswd -e siegfried


you may also have a conflict between the "homes" and the explicit definition of siegfried.
 
Do a start, run, \\192.168.1.4


See if it pops up a list of shares or a password prompt or an error.

Post results.
 
Hidden75,
Could you elaborate a bit? What exactly are the start, run commands you suggest I use and where do I execute them? on windows XP or Fedore Core 4?

Stan Hubble,
Thanks -- I'll try that tonight. I gotta go to another dinner party.

Siegfried
 
Add: security = user to the global section & restart samba. Incedentally, what's in '/etc/samba/smbusers'? If you have only the 1 user with a 1 word username, there's no real benefit & unless there's something in your network that you haven't told us about, comment out the idmap lines.
 
All:
Still no luck.
Smah:
I added security=user and commented out the idmap lines. Is there something I should do about /etc/samba/smbusers?
Stan,
I tried smbpasswd -e siegfried and it says "siegfried" is enabled. I also verified the password.

Could there be a problem with the protection of /home/siegfried?

I tried creating another directory and "chown siegfried:siegfried /home/siegfried2" and "chmod 777 /home/siegfried2" and pointed the directory to siegfried2.

No luck.

Any other ideas?

Thanks,
Siegfried
 
Make a backup copy of your smb.conf
Change it to the following example. If it still gives you problems, then it could be a problem with the encryption used between XP and the Samba server.

[global]
workgroup = MYGROUP
update encrypted = Yes
unix password sync = Yes
client NTLMv2 auth = Yes
client lanman auth = No
client plaintext auth = No
log file = /var/log/samba.log
max log size = 100
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY
preferred master = Yes
idmap uid = 10000-20000
idmap gid = 10000-20000

[homes]
comment = Home Directories
read only = No
browseable = No


"If you always do what you've always done, you will always be where you've always been."
 
I tried that by commenting everything and pasting in the above. Then I restarted with

/etc/rc.d/init.d/smb restart

Connecting from XP Pro did not work. Don't I have to specify a legal path to share in the smb.conf file?

Well, anyway, it produced the exact same errors on XP Pro as it did previuosly.

It is interesting that I get different error messages depending on whether I supply the username and password or let it prompt me. When I let it prompt me, I get "System error 53 has occured. the network path was not found." When I supply the user name and password on the command line I get "System error 5 has occurred. Access is denied.".

Thanks for all the help so far!

Siegfried
 
does the following work?

mount -t smbfs //198.169.1.4/siegfried /mnt/sales -o username=siegfried

if it does then the problem most likely is on the xp machine.
you could also have a iptable rule blocking it.

 
Sorry. On your windows box go to start , then run, and type \\192.168.1.4

And then hit okay.

See if it pops up all your shares on your linux box.

You can see your Linux box in Network Places right?

 
hidden75,

I get a message box that says "\\192.168.1.4. The networkpath was not found."
However, ping 192.168.1.4 works fine!

I cannot see my linux box in network neighborhood. However, I can see the workgroup "mygroup" which is defined in smb.conf.

stanhubble,

mount -t smbfs //192.168.1.4/siegfried /mnt/work username=siegfried

works fine. I can see the shares.

Both,
Well it looks to me like Windows is having trouble seeing 192.168.1.4 but it can ping it. I don't understand.

Thanks,
Siegfried
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top