LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2011, 12:04 AM   #1
grant.smith
LQ Newbie
 
Registered: Jul 2009
Location: Calgary,AB, Canada
Posts: 10

Rep: Reputation: 0
share to xp


I have the following scenario:

dual boot Fedora 14 and XP SP2

I Fedora I can see the XP drives

data
data3

I would like to share htese so that I can access them from another XP pc.

I have configured samba as follows for local XP drives

/media/data/films films1 shared read/write visible
/media/data3/films films2 shared read/write visible

also for local a fedora mount

/home/gsm/documents docs shared read/write visible

permissions:

I have tried
gsm: password
give access to everybody

from the remote XP laptop i can see the linux server and the 3 shares, but when I select any of them, it asks for a password, which never works.

I added the user guest, still no luck.


can anybody point me in the right direction please?

Cheers!!

Grant

Last edited by grant.smith; 02-19-2011 at 12:13 AM.
 
Old 02-19-2011, 07:22 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,553

Rep: Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434
Have you added the user to the Samba password backend using 'smbpasswd'? Samba uses a separate user database to that on your Linux system.
 
Old 02-19-2011, 12:00 PM   #3
Steve K.
LQ Newbie
 
Registered: Jul 2004
Location: Portland, OR
Posts: 15

Rep: Reputation: 1
1. In your dual boot system, you must be booted into XP part to see an XP file.
2. The Samba password entered in the Fedora section of the dual boot is not relevant to the XP section.
3. With XP booted, try to access its "Shared Documents" folder from the remote laptop. (The "Shared Documents" folder is really C:\Documents and Settings\All Users\Documents) You should be able to.
4. If you can access the folder, then you must move or copy the files you wish to share to it. If you can't access the folder you should know that, for security reasons, XP has made it very difficult to access any folder other than the "Shared Documents" folder using Samba. By very difficult I mean that you must open ports directly to directories other than the "Shared Documents"
 
Old 02-19-2011, 05:22 PM   #4
grant.smith
LQ Newbie
 
Registered: Jul 2009
Location: Calgary,AB, Canada
Posts: 10

Original Poster
Rep: Reputation: 0
@allend
Ok I tried changing the password of guest using:

[root@gandalf2 samba]# smbpasswd -a guest
New SMB password:
Retype new SMB password:

still no luck.

-----------------------------------------------------------------
@SteveK

When in XP mode I have 2 shares that are accessible from the local 10.1.1.0/24 network.

\\10.1.1.10\films1
\\10.1.1.10\films2

When in Fedora mode (on 10.1.1.10), I am able to see the XP drives and have tried, via samba, to share the SAME directories.

/media/data/films1 as films1
/media/data3/films2 as films2

They get listed when access from laptop 10.1.1.15, but the password fails.


Thoughts?
 
Old 02-20-2011, 07:38 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,553

Rep: Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434
Your user needs to be a valid Linux user as well as having an entry in the Samba password backend.
Also, did you restart Samba after making the change?
 
Old 02-20-2011, 09:42 AM   #6
Steve K.
LQ Newbie
 
Registered: Jul 2004
Location: Portland, OR
Posts: 15

Rep: Reputation: 1
When you are in the Fedora part of the dual boot system the XP part is not booted and not accessible. Similarly, when XP is booted the Linux part is not booted or accessible. They are listed but not accessible. Try pinging the XP system when it's not booted and there will be no response. That shows it's not on the network.
 
Old 02-20-2011, 10:03 AM   #7
grant.smith
LQ Newbie
 
Registered: Jul 2009
Location: Calgary,AB, Canada
Posts: 10

Original Poster
Rep: Reputation: 0
@allend
yes to both.
I have created the user gsm & guest. I noticed that the XP laptop is always using the user guest, with no way of changing it. So that's why I created him on the Linux box.

Looking at the smbpassword logs, I can see that the laptop is being recognised but is failing to authenticate due to bad password.

[2011/02/20 08:53:32.483936, 1] smbd/service.c:678(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD



but I'm also getting this error repeatedly:

[2011/02/20 08:43:49.437233, 0] lib/util_sock.c:1432(get_peer_addr_internal)
getpeername failed. Error was Transport endpoint is not connected
read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
 
Old 02-20-2011, 10:08 AM   #8
grant.smith
LQ Newbie
 
Registered: Jul 2009
Location: Calgary,AB, Canada
Posts: 10

Original Poster
Rep: Reputation: 0
@SteveK

Sorry but I'm not exactly sure what you mean.

When logged into Fedora, I can see ALL the local XP drives on that box and can also open any of the files, including:

.avi films
.xlsx Excel files
.docx Word files
.pdf Adobe files.

I can also use them and save them back to the XP locations.

I can access shares on an XP external box whilst in Fedora, that works perfectly.
It's just the other way XP to Fedora that isn't working.
 
Old 02-21-2011, 11:04 AM   #9
Steve K.
LQ Newbie
 
Registered: Jul 2004
Location: Portland, OR
Posts: 15

Rep: Reputation: 1
Now I don't understand. When I had a dual booted system, I could not open files in the XP system when my openSUSE system was booted and vice versa. Given what you've told me, I take it the problem you want to solve is the following: When your Fedora system is booted you can see and open the XP files, such as the ones listed above, from the Fedora system. However you cannot open the XP files from other computers on the system, and you would like to. How about this: When the XP system is booted can you open the XP files from other systems on the computer?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] can mount WinXP share but not Win7 share in fstab dodgefan Linux - Server 9 06-13-2010 07:45 PM
How can I mount a NFS share that have a SMB share mounted? perezyanez Linux - Networking 2 09-26-2008 09:03 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
In NFS server. I want to share directory but i dont want to share subdirectories. aashishdhabarde Linux - Server 1 01-16-2008 03:48 AM
searching samba share breaks connection to share Elomis Linux - Server 1 05-11-2007 12:28 AM


All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration