Author Topic: Cannot access WinXP share from PCL 2010 Phenix  (Read 912 times)

Valestrasza

  • Guest
Cannot access WinXP share from PCL 2010 Phenix
« on: April 29, 2010, 11:13:40 AM »
When trying to access Windows XP Prof SMB shares from PCL computer, I'm getting repeated password prompt and when trying smbclient tool I'm getting LOGON_FAILURE message. I'm using credentials stored in file so the user name and password are correct. Obviously shares are accessible from other Windows machines. What's the reason and how to fix it?

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #1 on: April 29, 2010, 11:27:30 AM »

can you be a bit more specific on how you attempt to connect and where you stored your credentials.

are you trying to connect from the terminal using the "mount command"? what command options do you use if you do?

are you trying to connect using pcc? smb4k or any other tool?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Valestrasza

  • Guest
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #2 on: April 29, 2010, 12:19:22 PM »
As I said, I'm trying to use 'smbclient' utility. The credentials are in the text file in my home directory. I've tried command center, but it just shows the computer list, and when I'm expanding it it just asks for username/domain/password and nothing happens. I don;t have smb4k.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #3 on: April 29, 2010, 12:39:13 PM »

never used that utility, cant remember anybody offering solution that uses that utility here.

if you are open for alternative solutions, try accessing those remote shares first by mounting them on your local file system with "mount" command

you can do that from the terminal as root by first creating a mount directory with:

mkdir /mnt/share

and then mount the remote share to that folder with

mount -t cifs -o credentials=/home/ink/credentials  //192.168.100.20/share /mnt/share

where  "//192.168.100.20/share" is your remote share and "/home/ink/credentials" is full path to a file with your credentials

hopefully, somebody else will come along with suggestions that uses "smbclient" if you want to use this tool
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Valestrasza

  • Guest
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #4 on: April 29, 2010, 07:15:23 PM »
I'm getting 'mount error (13): permission denied' error. I tried '-t smbfs' trick, but to no avail.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #5 on: April 29, 2010, 07:33:25 PM »
try this

mount -t cifs -o domain=DOMAIN,credentials=/home/ink/credentials  //192.168.100.20/share /mnt/share

make the necessary substitutions as above, substitute "domain" name with your work group or computer name
« Last Edit: April 29, 2010, 07:37:46 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Valestrasza

  • Guest
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #6 on: April 29, 2010, 10:04:19 PM »
Doesn't work.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #7 on: April 29, 2010, 10:29:53 PM »

what exact command did you use?
what domain name/netbios name did you use when you set up samba?
what is your computer name if you did not set up the above?
can you turn off passwords on the server and see if it works without them?

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Valestrasza

  • Guest
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #8 on: April 30, 2010, 12:13:02 AM »
Code: [Select]
mount -t cifs -o ro,cred=/home/xxx/.cred,domain=MSHOME //192.168.0.1/xxx /mnt/xxxI've also tried netbios name instead of MSHOME, but to no avail.
I will not change settings on my server, because it works now and I won't put it on the risk by messing with it.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #9 on: April 30, 2010, 01:10:32 AM »

i think your problem is caused by one of the two or both.

1. your credential file is not the way samba expect it to be, try to add username and password directly as options to the "mount command"

2. your workgroup isnt set up correctly, you want to join "MSHOME" group, change "/etc/samba/smb.conf" file and change group to "workgroup = MSHOME" and try again
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Valestrasza

  • Guest
Re: Cannot access WinXP share from PCL 2010 Phenix
« Reply #10 on: April 30, 2010, 02:15:29 AM »
I've changed the workgroup name in smb.conf and provided user name and password explicitly:
Code: [Select]
mount -t cifs -o ro,user=xxxx,pass=xxxxx,domain=MSHOME //192.168.0.1/xxx /mnt/xxxSame error.