LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Why can i not see my RedHat server in Network Neighbourhood on W2k Server??? (https://www.linuxquestions.org/questions/linux-networking-3/why-can-i-not-see-my-redhat-server-in-network-neighbourhood-on-w2k-server-106157/)

NemesisStar 10-20-2003 01:07 AM

Why can i not see my RedHat server in Network Neighbourhood on W2k Server???
 
Hey all,

Im trying to setup a RedHat 8.0 server for dns and ftp and i want to connect to a Windows Advanced Server 2000 machine for DHCP and Active dir...

I cannot see my RedHat machine in network neighbourhood on Windows machine.

Do i need to use samba to make this connection?

talkinggoat 10-20-2003 01:17 AM

are you ruunning samba?

NemesisStar 10-20-2003 01:18 AM

No. not on either machine

NemesisStar 10-20-2003 01:20 AM

Which machine would be the samba client?

talkinggoat 10-20-2003 01:24 AM

i don't think that you will be able to see a linux box on a network wihout samba. windows does not cooperate in that way with linux. www.samba.org

talkinggoat 10-20-2003 01:33 AM

sorry ... didn't see that post. the windows machines would be the "clients" you don't have to install any software on them, samba just makes it possible for you to see the linux box from a windows machine. you may want to read up on it. that samba site has lots of documentation that can be helpfull. it may be necessary to modify the configuration file to keep samba from acting as a domain server. future versions of samba will have active directory, gp's and sec pol's built into them, and, hopefully, will replace a win2k server all together.

NemesisStar 10-20-2003 01:40 AM

Thanks
 
Thanks heaps...

No choice but to use windows unfortunatley! And its causing problems already lol

talkinggoat 10-20-2003 01:41 AM

man, i need to stop staying up so late; i'm out of it... yes, you will need samba. you will not be able to browse the linux box without it. i would suggest that you use sparky to run dhcp, as well. it isn't hard to set up, and there is plenty of documentation online. that would take one more problem out of the windows side there are also programs on the samba site that you can use to simulate a linux terminal.

krazyglue 10-20-2003 01:41 AM

I am working on a similar problem. First, if you’re configuring your Redhat Box by DHCP, make sure your getting an address on that box (ifconfig in command line). I would highly recommend you should have a static IP on that address, If you going to be using your server for DNS and FTP. You don't want the address for lookups and FTP serving changing on you.

You can remove DHCP by the following:
1. edit /etc/sysconfig/network-scripts/ifconfig-eth0 to say "onboot=no". -> this will turn off the DHCP on bootup.

To configure your box do the following
2. add the following lines to /etc/rc.d/rc.local
/sbin/ifconfig eth0 199.119.119.119 <-- your static IP address
/sbin/ifconfig eth0 netmask 255.255.255.0 <-- your subnet mask
/sbin/route add default eth0
/sbin/route add default gw 119.119.119.1 <-- router/gateway
/bin/hostname XXXX <-- sets hostname to XXXX (change this to the name of the PC)
/bin/domainname XXXX.XXXX <-- sets domainname to XXXX.XXXX(change this to your domain name)

3. Edit /etc/resolv.conf to include your DNS information
search XXXX.XXXX <-- optional search domain (should be the same as the domain name in #2)
nameserver 119.1.1.1 <-- nameserver 1 (change this to the IP of your DNS server)
nameserver 119.1.1.2 <-- nameserver 2 (change this to the IP of your second DNS server ie this linux box)

4. Add your IP address, hostname, and hostname.domainname information to the /etc/hosts file
127.0.0.1 localhost localhost.localdomain (type this exactly)
199.119.119.119 XXXX XXXX.XXXX (this should be the IP address for the box (space) hostname in #2 (space) the domain name in #2.

Reboot (I am sure there is a way around this, but I don’t know how)

Now, assuming that you setup your samba correctly, start your SMB service (command line "service smb start" with out the "")

Now, join the domain by typing in the following in a command line
smbpasswd -j XXXX.XXXX -r YYYYY -U administrator%password

XXXX.XXXX is your domain name (should be this same is in above #2) YYYYY is the name of your Active Directory server. PLEASE NOTE THE CAPITAL U. You can change users from administrator, but it has to be an account in AD that allows a PC to join the domain also, don't type in "password" type in the password of the administrator account in AD. Opps, i forgot to tell you, make a computer account (in AD) for the linux box before this step. Your linux box should say joined the XXXX.XXX domain. You then should see your linux box in network neighborhood. Now you just have to edit permissions in the smb.conf file for shares on your linux box.

I got most of this from the following web address.
http://lppcfom.sourceforge.net/fom-s...ache/1045.html

Also, you can check this site out. I know, its for Mandrake, but it seems to be helpful as well.
http://www.mandrakeuser.org/docs/connect/csamba5.html

krazyglue 10-20-2003 01:49 AM

I just saw your other posts. Check out this site on how to setup Samba. Also, you can use the Mandrake site to help you on configuring Samba.

http://www.daniweb.com/techtutorials/articles/1/5/

I am not 100% sure, but i think Red Hat 8 comes with Samba installed on it. If not, download it from http://rpmfind.net. basically you have to edit the following file /etc/samba/smb.conf. Word to the wise, back up that file before you edit it.

krazyglue 10-20-2003 01:53 AM

It is getting late...

before you download Samba, check to see if Samba is installed by typing in "rpm -qa |grep samba" if something comes back (such as samba-2.2.7.a) then its already installed. Just make the configuration edits and start the samba service

NemesisStar 10-20-2003 01:54 AM

Does it matter if i wrongly configured the domain name in windows, a differant domain name to the linux box??

napie 10-20-2003 01:54 AM

should configure your samba so it can communicate with windows netbios.

NemesisStar 10-20-2003 01:55 AM

Thanks krazyglue.. makes more sense now :)

krazyglue 10-20-2003 02:05 AM

not a problem.

Now, on the the good stuff, how do you authinticate windows user (VIA AD) on a Linux box? thats what I am trying to do now. Any help would be great!


All times are GMT -5. The time now is 01:40 PM.