Doing the Windows 2000 Samba
Samba is the free SMB and CIFS client and server for Unix and other operating systems. SMB stands for Server Message Block and is the protocol used for file and printer sharing under most versions of Windows. CIFS stands for Common Internet File System, and is the newest SMB initiative. In this article I'm going to go over setting up Linux and Samba to internetwork with Windows 2000.
The home of the Samba Project is www.samba.org.
The latest stable release:
http://us1.samba.org/samba/ftp/samba-2.0.7.tar.gz
The latest alpha release (with NTDomain support):
http://us1.samba.org/samba/ftp/alpha/samba-2.2.0-alpha1.tar.gz
As far as Windows 2000 is concerned, Samba will play okay, with some caveats.
- You will need to set up encrypted passwords on the Samba server or utilize a Windows 2000 registry hack. Setting up encrypted passwords at the Linux side is much better now, and I would recommend going this route. Windows users can now change their Linux passwords through Samba.
If you want to enable domain logins, you will need to use the more recent versions of Samba. I was unable to get this to work successfully for the Windows 2000 machine, although it did work for Windows 95, 98 and NT 4.0. From what I could tell from Google searches and notes from the Samba site, this portion is still under development.
Unless you need the primary domain controller functionality, I'd say stay with the stable version.
Setting Up Dhcpd
If you want to let the Linux server dynamically allocate IP addresses to the client machines, you need dhcpd, the Dynamic Host Configuration Protocol Daemon. To setup dhcpd, you will need to get an appropriate RPM (RedHat Package Manager) for your distribution or compile from source. Consult either your distribution CD or its Web site for a RPM, or check out www.rpmfind.net. You install the RPM as root with the "-i" option:rpm -i dhcp-2.0b1pl6-7mdk |
default-lease-time 21600; max-lease-time 21600; option subnet-mask 255.255.255.0; option broadcast-address 192.168.192.255; option routers 192.168.192.1; option domain-name-servers 207.217.126.81, 207.217.120.83; option domain-name "ays.net"; shared-network WORKSTATIONS { subnet 192.168.192.0 netmask 255.255.255.0 { } } group { use-host-decl-names on; host larry { hardware ethernet 00:50:DA:D6:7C:2A; fixed-address 192.168.192.2; } } |
DHCPDISCOVER from 00:50:da:d6:7c:2a via eth0To start the daemon, use this command:
/etc/rc.d/init.d/dhcpd start
Page 1 of 5
This article was originally published on December 21, 2000