LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2004, 12:37 AM   #1
btexpress
Member
 
Registered: May 2004
Location: Seattle
Distribution: Fedora Core 4
Posts: 77

Rep: Reputation: 15
Question How to see Linux machine from XP


I have two machine. One uses Fedora Core 1 and WinXP dual boot and the other just WinXP.

I have two issues:

1. From the Linux box when I try connecting to the other machine is asks for a password and says that it will be transmitted unencrypted. How do I change this setting?

2. How do I join the Linux box to the workgroup? Currently I do not have a domain name setup. Do I need to do anything from the XP side of things?

Thanks.
 
Old 05-22-2004, 02:11 AM   #2
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
This is done via samba. The file is smb.conf in /etc/samba. You should be able to just change the workgroup name there and probably make sure the share is set to 'user' and there is a place where you want to set the user directory browsable as well. The encrypted password option is there too. Then add a user id/password with 'smbpasswd -a <username>' on the command line as root and restart smb/nmb. This user/password is for the sever running on the linux box, it is what you will enter when you are trying to access the linux computer from the xp one.

On the windows side, make sure the drive you want is shared by right clicking on it in explorer and then selecting the sharing. The dialogue is for other windows boxes, so you can skip the wizard and just share the drive. To access the linux box will require a user/password, but the windows one (XP) will not. Set up your xp firewall to only allow traffic on the smb ports (137-139) to the linux box IP.
 
Old 05-22-2004, 10:55 AM   #3
btexpress
Member
 
Registered: May 2004
Location: Seattle
Distribution: Fedora Core 4
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks for your reply.

I have done the following:

1. chaged the workgroup =
2. remove the ; infront of encrypt passwords = yes and smb passwd file = /etc/samba/smbpasswd

It still tells me that the password will be sent unencrypted and also I am unable to see my Linux box from the XP box.

BTW, where do I go to see my machine name, in Linux?
 
Old 05-22-2004, 01:36 PM   #4
fuubar2003
Member
 
Registered: May 2004
Location: Orlando, Florida
Distribution: SLES10/11, RH4/5 svrs, Fedora, Debian/Ubuntu/Mint; FreeBSD/OpenBSD
Posts: 63

Rep: Reputation: 26
#hostname
 
Old 05-29-2004, 02:19 PM   #5
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
After you made those changes did you restart smb? (as root "smb restart") If not, this could be the cause of the settings not taking effect.
I'm having a similar issue, so this is just a "shot in the dark."
 
Old 05-29-2004, 02:41 PM   #6
btexpress
Member
 
Registered: May 2004
Location: Seattle
Distribution: Fedora Core 4
Posts: 77

Original Poster
Rep: Reputation: 15
Beautiful. I had almost given up on trying. Thanks. :-)
 
Old 05-29-2004, 08:35 PM   #7
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Lightbulb THERE IS HOPE! My solution:

Hi, everybody.

I've FINALLY gotten this working, after about 24 hours (straight-through) of searching the web (wich didn't have anything useful, as I'm sure you've found-out), reading manuals (which have way too MUCH useful stuff) and just plain fiddling.

Most of the problem was with the smb.conf file. For whatever reason, the documentation's advice to keep that file as simple and minimalistic as possible didn't really get the job done, so I began picking apart a working installation on another machine that had the whole thing auto-configured at installation (using the Mandrake 10 Offical installer). For one thing, STAY THE HECK AWAY FROM SWAT during the initial (re)configuring. For whatever reason, it just doesn't do what (I think) it says it's going to.

Another thing that had me jammed-up for a while was the firewall in MDK. Even though I had everything enabled, it still was blocking stuff, and in addition to that, my base security settings were all goofed-up. To solve this, I set the "security settings" to "poor" (not recommended if you want a setting you can leave it at) and then I removed everything having to do with networking (perhaps a bit of an overkill) and reinstalled it all again. Then I put the security settings back to "standard" but left everything on the firewall enabled. (I can go back and block things one-at-a-time later to see what actually NEEDS to be enabled for all my stuff to work right.)

Finally, at several points I was having trouble pinging the Windows XP computer. The first time it was because I had ZoneAlarm running on Windows XP. I shut that down and it fixed the problem. (I'm sure it can be configured correctly so that it doesn't make problems, but for the time being I'm leaving it OFF.) The second time, something got jammed up with my iptables. To solve this, since I don't use them for anything specific right now, I just stopped the service. (This was before I reinstalled everything; it works fine now.)

Now for the "grit" of the solution: the smb.conf file:
<code>

# Global parameters
[global]
workgroup = MSHOME
server string = samber server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins support = Yes
guest ok = Yes
hosts allow = 192.168.0.2, 192.168.0.254

[nfs]
comment = nfs
path = /var/nfs/

[homenfs]
comment = homenfs
path = /home/tech/nfs/

[homes]
valid users = %S
path = /home/
browseable = yes


<end code>

I honestly don't know what thos "socket options" are for, but for some reason my Samba setup doesn't work without them. I'm sure there's a section on all that stuff in the manual.

Now I'm happily sharing along both from Linux to XP and from XP to Linux.

I hope this helps you. Let me know if you have more problems and I'll take some more wild guesses.

Have a good one.

--Dane

P.S. In case you're wondering, the IP addresses listed are: 192.168.0.2 (Windows XP) and 192.168.0.254 (Linux). The local address (Linux) isn't necessary; I was just being tired and "thorough."

Last edited by DaneM; 05-29-2004 at 08:39 PM.
 
Old 05-30-2004, 03:08 AM   #8
Agent M
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 9

Rep: Reputation: 0
Disclaimer:

Ok, I think this is probably the right forum for me problem, sounds like it might be similar to yours DaneM.

First of all the configs :

Linux box:

Intel Celeron 333Mhz
160MB RAM
Mandrake 9.2
Kernel 2.4.22-10

Windows box:

Intel P4 2.8Ghz Prescott
512MB RAM
Windows XP


There are also other computers on the network, but they are not important for now.

I use the linux box to connect to the internet ( with an internal modem ) and it shares that internet connection with the other computers on the lan. It is also set up as the DHCP server. Security setting is standard.

I also want to be able to share files both ways between linux and windows, as well as use desktop sharing, I have downloaded VNC client for windows. I have used SWAT to carry out file sharing settings btw.

Now the internet connection sharing works fine, and I can even get the file and desktop sharing working, BUT not at the same time as internet sharing....it seems like I have a choice of either internet sharing OR file and desktop sharing.

To get file and desktop sharing working I simply go to mandrake control center and tick the box that says allow "everything ( no firewall )" , and I am then able to use desktop sharing...and I think file sharing as well. but the internet sharing stops working. To get that going again I have to go through the Internet connection sharing wizard again ( possibly the wizard for setting up the network as well...its been a while since I have actually done this....my memory is fading ), this then gets the internet sharing working again, BUT the desktop and file sharing stops again.

I want any computer on the lan to be able to access the linux box through desktop sharing so they can connect it to the internet when needed, and use the linux box to share that connection as well as sharing files on the lan, and i would like to do this without having a monitor, keyboard and mouse plugged in to the linux box.

I think thats all????
Did I miss anything? questions? answers?

DaneM, your using Mandrake 10?? any good, what are the main differences between 10 and 9.2?

Thanks

M
 
Old 05-30-2004, 05:12 PM   #9
btexpress
Member
 
Registered: May 2004
Location: Seattle
Distribution: Fedora Core 4
Posts: 77

Original Poster
Rep: Reputation: 15
I just added another machine and put Mandrake 9.2. I changed the smb.conf file and also changed localhost in /etc/hosts file to my machine name. Done the same in the /etc/samba/lmhosts file. Then typed as root hostname newname. When ever I reboot my machine I loose the newname and it says user@locahost. Is there another place where I need to chage it. I see a solution to put a script in profile.d directory that will change the hostname but this I belive is not a good way.

Thanks.
 
Old 05-31-2004, 02:27 AM   #10
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Hmmm.

I'm not really sure which file you need to change in order for your localhost name to stay how you want it. Like the newbie I am, I usually just change stuff like that graphically in the configuration tools. In Mandrake 10 I set it up using the network/internet connection "wizard." Try looking around on some other threads; I'm sure it's out there.

As far as the remote desktop thing is concerned, I've never tried it, so I'm not really sure what I can tell you. You might want to start your own thread so more people with that kind of experience will see your question. Be sure to post it under "Networking."

Best of luck!

--Dane
 
Old 05-31-2004, 05:19 AM   #11
Agent M
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 9

Rep: Reputation: 0
Ok, will do

Thanks anyway Dane

M
 
Old 06-01-2004, 12:06 AM   #12
btexpress
Member
 
Registered: May 2004
Location: Seattle
Distribution: Fedora Core 4
Posts: 77

Original Poster
Rep: Reputation: 15
Here is where hostname should be changed

/etc/sysconfig/network
HOSTNAME=<YOUR HOSTNAME>
 
  


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
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 10:45 AM
networking my linux machine with my xp machine through a 3com switch chefkahuna Linux - Networking 1 07-06-2005 09:01 AM
how to access internet from a linux machine via a linux machine as gateway b0nd Linux - Newbie 5 03-21-2005 11:59 AM
Using SMB to copy files from one linux machine to second linux machine. coppersky Linux - Networking 9 06-24-2003 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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