LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   networking (WinXP<->FC2) using samba? (https://www.linuxquestions.org/questions/linux-newbie-8/networking-winxp-fc2-using-samba-301774/)

onthos 03-15-2005 04:31 AM

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

joesbox 03-15-2005 04:44 AM

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

onthos 03-15-2005 04:58 AM

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?

joesbox 03-15-2005 05:11 AM

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.

onthos 03-15-2005 07:19 AM

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
??

joesbox 03-15-2005 07:34 AM

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.

onthos 03-15-2005 07:59 AM

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]#

joesbox 03-15-2005 11:35 AM

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.

onthos 03-15-2005 12:41 PM

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. :D

onthos 03-15-2005 03:49 PM

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

joesbox 03-15-2005 04:21 PM

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.


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