LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-15-2005, 05:31 AM   #1
onthos
Member
 
Registered: Aug 2004
Posts: 45

Rep: Reputation: Disabled
networking (WinXP<->FC2) using samba?


I've been reading through the posts on networking because I am having troubles with finding my XP box with my Linux box. Most of the posts I am reading contain something or other about an app called Samba. I have no idea what this program does, or even how to open it, so I was hoping someone could help me out.

~Onthos
 
Old 03-15-2005, 05:44 AM   #2
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
samba is a nice interface with windows computers over a network.. it isn't an app that you can open or run like mozilla or openoffice. but there is some documentation on configuring it here
http://us2.samba.org/samba/docs/man/...TO-Collection/

you may also want to learn how to work with your fstab if you want to have a perminant connection with your win box.
here is another link if you like to read
http://tldp.org/HOWTO/SMB-HOWTO.html
 
Old 03-15-2005, 05:58 AM   #3
onthos
Member
 
Registered: Aug 2004
Posts: 45

Original Poster
Rep: Reputation: Disabled
OK... so I'm reading those HOWTO's and I realize that it might be my linux firewall that is preventing me from networking... so how do I stop my firewall?
 
Old 03-15-2005, 06:11 AM   #4
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
i am not familiar with FC but are you running SP2 on your WinXP box? i have found that the firewall on there drops pings and that sort of thing.
i think that the main thing you may want to do is make a folder and do something like this. you are going to need to have your winxp info like the computer name (you will need to put this in to your /etc/hosts file.) you will also need the share folder's name (case sensitive i believe).

in the term as root try this
Code:
mount -t smbfs -o users,rw,username="<your winxp username>",password="<the username's password>",uid=<linux username>,gid=<that username's group id>
if you need further help let me know. you can read up more on mount by typing
Code:
 
man mount
in the term. if you need help with your hosts file let me know that too. i will gladly help as much as i can.
 
Old 03-15-2005, 08:19 AM   #5
onthos
Member
 
Registered: Aug 2004
Posts: 45

Original Poster
Rep: Reputation: Disabled
OK, so I typed in that string that you told me to, and I get a > prompt. I don't know what to do after that. The good news is, after I did that, my other Windows PC's now show up in the Network folder.
Which leads me to my next question.
When I try to access <pc-1> (one of my Windows PC's) I get the error dialog:

The folder contents could not be displayed.
You do not have the permissions necessary to view the contents of "Windows Network: pc-1".

What options do I need to change in Windows to allow me to access my pc-1?

EDIT: exactly what do I need to put in my hosts file? Something like:
192.168.x.x pc-1.mshome pc-1
??

Last edited by onthos; 03-15-2005 at 08:28 AM.
 
Old 03-15-2005, 08:34 AM   #6
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
you got the > after the command because i made some sort of error. maybe remove the "" from the username and password info....... that would be a temp fix and just to find out if you could do it anyway...... so you can see your other computer so lets make it a little more permanent. as root open your /etc/fstab and add the following line......
Code:
//<windcomputer name>/<wincomputer share name> <tab> /<path to connecting linux folder> <tab> smbfs <tab> <options..... you can get these from man mount> <tab> 0 <tab> 0
anything between < and > you replace or when you see a <tab> put in a tab which is for syntax format
once you have that done then you should be able to use this command
as user
Code:
mount <path to connecting linux folder>
if it doesn't work as user then make sure the the user and group of the folder belongs to the user. now for some reason and i have the same problem you WILL have to umount the connection as root. i don't understand this and i have not gotten the answer. if you figure out the reason let me know.
 
Old 03-15-2005, 08:59 AM   #7
onthos
Member
 
Registered: Aug 2004
Posts: 45

Original Poster
Rep: Reputation: Disabled
OK... so I did what you told me to, but I have a few problems.
[onthos@linpc onthos]$ mount /home/onthos/shared
mount: only root can mount //pc-1/drive_c on /home/onthos/shared
[onthos@linpc onthos]$ su
Password:
[root@linpc onthos]# mount /home/onthos/shared
Password:
Anonymous login successful
2832: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
[root@linpc onthos]#
 
Old 03-15-2005, 12:35 PM   #8
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
i think that you are trying to get connected to //windowsxpComputer/C$. that for some reason is not allowed. you have to have an active share folder for some reason. i tried it here at home and i got the same error. outside of that i don't think i can help you.
 
Old 03-15-2005, 01:41 PM   #9
onthos
Member
 
Registered: Aug 2004
Posts: 45

Original Poster
Rep: Reputation: Disabled
I made a second share of C: called 'drive_c' just so I could test this out.
Anyway...

Thanks for all your help. It was/is much appreciated.
 
Old 03-15-2005, 04:49 PM   #10
onthos
Member
 
Registered: Aug 2004
Posts: 45

Original Poster
Rep: Reputation: Disabled
Have you ever tried using the Konquerer web browser and then going to smb:/ ? It's a quite nice gui for accessing the network.

Last edited by onthos; 03-19-2005 at 10:29 AM.
 
Old 03-15-2005, 05:21 PM   #11
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
i don't have konquerer installed. i use the term to access my files. i used to use kde but then i was looking for a more lean interface.
 
  


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
how to setup samba for winxp/linux networking Ay-Karamba! Linux - Networking 2 08-27-2005 09:04 PM
WinXP networking Spooky Other *NIX 5 11-19-2004 09:41 PM
WinXP and FC2 on two hard drives. jens Linux - Newbie 0 09-21-2004 09:29 PM
Transfering file between WinXP and FC2 NeoAndersn007 Linux - Hardware 6 08-15-2004 03:24 PM
WinXp and FC2 + Suse 9.1 boombastic Linux - Newbie 1 08-02-2004 06:59 PM


All times are GMT -5. The time now is 12:32 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