LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2005, 09:15 PM   #1
FKereki
LQ Newbie
 
Registered: Sep 2003
Location: Montevideo, Uruguay
Distribution: Open SuSE 10.0
Posts: 19

Rep: Reputation: 0
Cannot access Windows XP shares from Linux


I cannot access my kid's shares on their Windows XP. I can see the shares at smb://kidsPC but when I try to browse around, I get "PLEASE ENTER AUTHENTICATION INFORMATION FOR SERVER=kidsPC SHARE=xxxxx" and even though I enter my user name and password (I have administrative rights on their machine) I cannot go forward... what can be happening?
 
Old 07-31-2005, 01:03 AM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
what command are you using to mount your samba share?

you could try this
Code:
mkdir /mnt/samba
mount -t smbfs //kidsPC/sharename /mnt/samba
if this fails, what error message is it giving you

also,
this is assumbing your windows computer name is kidsPC

Last edited by shanenin; 07-31-2005 at 01:08 AM.
 
Old 07-31-2005, 01:08 AM   #3
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
Could be domain?

When people browse windows shares, one of the common things they do wrong is forget the domain, remembering only the username and password.

Try this:


create a folder called remote, in any directory, then switch to the directory above that. For example /root/remote and be in /remote

type

mount -t smbfs -o username=USERNAME, password=PASSWORD, workgroup=WORKGROUPNAME //KidsPC/Sharename remote

substituting USERNAME, PASSWORD and WORKGROUPNAME for the appropriate values.

The remote folder is then a shortcut to the share on the other machine.

Last edited by Elomis; 07-31-2005 at 01:10 AM.
 
Old 07-31-2005, 01:12 AM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Re: Could be domain?

Quote:
Originally posted by Elomis

mount -t smbfs -o username=USERNAME, password=PASSWORD, workgroup=WORKGROUPNAME //KidsPC/Sharename remote
I think you want to close up those spaces in your options
Code:
mount -t smbfs -o username=USERNAME,password=PASSWORD,workgroup=WORKGROUPNAME //KidsPC/Sharename remote
 
Old 07-31-2005, 05:06 AM   #5
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
First you can do 'smbclient -U <username> -L KidsPC' to see if you have any reaction from the Windows PC. This will give you the available shares on KidsPC.
Next you can take one of the shares shown and fill this url in konqueror or nautilus :
smb://KidsPC/<sharename>
Often windows pc's won't show you their shares in konqueror or nautilus, I don't know why...

good luck,
Elluva
 
Old 07-31-2005, 09:04 AM   #6
FKereki
LQ Newbie
 
Registered: Sep 2003
Location: Montevideo, Uruguay
Distribution: Open SuSE 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by elluva
First you can do 'smbclient -U <username> -L KidsPC' to see if you have any reaction from the Windows PC. This will give you the available shares on KidsPC.
Next you can take one of the shares shown and fill this url in konqueror or nautilus :
smb://KidsPC/<sharename>
Often windows pc's won't show you their shares in konqueror or nautilus, I don't know why...
Doing this works -- but I can also see the shares directly from Konqueror. However, trying to examine the shares doesn't work; I get the authentication window again.
 
Old 07-31-2005, 09:05 AM   #7
FKereki
LQ Newbie
 
Registered: Sep 2003
Location: Montevideo, Uruguay
Distribution: Open SuSE 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by shanenin
what command are you using to mount your samba share?

you could try this
Code:
mkdir /mnt/samba
mount -t smbfs //kidsPC/sharename /mnt/samba
if this fails, what error message is it giving you

also,
this is assumbing your windows computer name is kidsPC
I'm using Konqueror directly, and I also tried Smb4k. I can see the shares, but when I click on them to see the files, I get the authentication window.
 
Old 07-31-2005, 05:47 PM   #8
FKereki
LQ Newbie
 
Registered: Sep 2003
Location: Montevideo, Uruguay
Distribution: Open SuSE 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
Re: Cannot access Windows XP shares from Linux

Quote:
Originally posted by FKereki
I cannot access my kid's shares on their Windows XP. I can see the shares at smb://kidsPC but when I try to browse around, I get "PLEASE ENTER AUTHENTICATION INFORMATION FOR SERVER=kidsPC SHARE=xxxxx" and even though I enter my user name and password (I have administrative rights on their machine) I cannot go forward... what can be happening?
EXTRA INFORMATION: When my kids had Windows 98, I had no problem getting at the shares. I found somewhere that you had to include ENCRYPT PASSWORDS=TRUE in smb.conf, but it didn't seem to work.
 
Old 07-31-2005, 07:00 PM   #9
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
What I told you to type

What I told you to type (with the helpful additions of the other LQ geeks ) will work, if it doesn't, drop the output into here and we'll help troubleshoot. It's a little confusing that you gave extra information, does that mean what I said didn't work and you are trying to help us help you from there?

I think what I told you to enter doesn't need smb.conf as it specifies some things that smb.conf just provides defaults for. give it a burl.
 
Old 08-01-2005, 05:56 PM   #10
FKereki
LQ Newbie
 
Registered: Sep 2003
Location: Montevideo, Uruguay
Distribution: Open SuSE 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
Re: What I told you to type

Quote:
Originally posted by Elomis
What I told you to type (with the helpful additions of the other LQ geeks ) will work, if it doesn't, drop the output into here and we'll help troubleshoot. It's a little confusing that you gave extra information, does that mean what I said didn't work and you are trying to help us help you from there?

I think what I told you to enter doesn't need smb.conf as it specifies some things that smb.conf just provides defaults for. give it a burl.
Sorry, I wasn't clear -- my fault. I tried all suggestions, and they didn't work. With the "mount -t smbfs..." command, I can see the shares, but when I try to look into any directory, I get

/bin/ls: reading directory .: Permission denied
total 0
 
Old 08-01-2005, 06:30 PM   #11
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
Question Permissions

It still sounds like a permissions problem.

The windows PC will be a member of either a workgroup or a domain, these are the two types of groups that you can have a windows computer in. Usually a win98 box will be in a workgroup and the name will be "workgroup" or "common".

If you do
Quote:
mount -t smbfs -o username=USERNAME,password=PASSWORD,workgroup=WORKGROUPNAME //KidsPC/Sharename remote
and subsitute USERNAME for the username of the admin account on the windows computer ("Administrator") and PASSWORD for the password of that account, and WORKGROUPNAME for the workgroup the machine is in, it should work fine.

Alternatively, leave out password=PASSWORD and if it is working correctly, it'll prompt you for the password, if not it might raise a different, more informative error message.
 
Old 08-01-2005, 07:04 PM   #12
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Ok this is because of the new authentication with windows xp.

i used to do microsoft tech support and your issue is actually common.

98 does not use the authentication of users
windows xp does


you need to have the same user on the windows xp computer that you are trying to log in with samba.

that or put it on simple file shareing


you find that on any folder go to tools then folder options and then go to view

its the last option with windows xp professional
home does not have this problem..


its ither that or some other problem.
 
Old 08-02-2005, 04:50 PM   #13
FKereki
LQ Newbie
 
Registered: Sep 2003
Location: Montevideo, Uruguay
Distribution: Open SuSE 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
A Windows XP problem, after all...

Reading the Windows XP help on file sharing (RTFM!!) it says you cannot use it to share any folders such as "Program Files", "Documents and Settings", or other users documents. I created a directory of my own in that machine, shared it, and I can access it with no problems at all. GRR!!!

Now I have to guess some way to be able to get at the files I need in that machine...

Thanks to everybody for the help!
 
Old 08-02-2005, 07:51 PM   #14
Bryan Henry
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Go to the machine and move the files... =?
 
Old 08-03-2005, 07:14 PM   #15
FKereki
LQ Newbie
 
Registered: Sep 2003
Location: Montevideo, Uruguay
Distribution: Open SuSE 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Bryan Henry
Go to the machine and move the files... =?
Yep, the old "sneakernet" way!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access windows shares Stevyn Linux - Networking 2 08-18-2004 04:01 AM
Access windows shares from Linux crossconnects Linux - Networking 4 04-23-2004 04:22 PM
Can't access Windows shares in Linux (FC1) lnxconvrt Linux - Networking 2 02-23-2004 12:58 PM
Can't Access shares from Windows sideveloper Red Hat 4 09-01-2003 08:59 AM
can't access windows shares linus Linux - Networking 1 01-15-2002 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration