To make a linux-box visible to windows clients e.g. w95, w98 or NT a Linux based program called SAMBA can be used. This page shown the setup i´m using to make the linux-box akt as an Domain controller. The SAMBA lacks some some of the functionallity included in a NT server - for more detailed description see http://www.samba.org.
Samba commands - smbadduser, smbpasswd and smbstat.
The setup i´ve used is based on SAMBA ver. 2.0. The 2.0, or a later if avaible, can be found at http://www.samba.org. Just get the software and install it. Do "rpm -Uvh <filename>.rpm if it is a RPM package or "gzip -dc <filename> | tar xvf -" if it´s a tar.gz archive. Upon successfull installation the SAMBA daemon should be autostarted. Do "ps -x | grep smb" as root to check if the service is up.
The configuration files delivered with SAMBA are fairly well documented. Most of the configuration is done in the file /etc/smb.conf. A default /etc/smb.conf file is installed during install-time. Definitions of shared directories etc. are done in this file.
MY login.bat file
@echo off
net use h: /home
net use p: \\sun\public
net use s: \\sun\src
net use w: \\sun\web
net use t: \\sun\Burn_tmp
My smb.conf - file. NOTE all refered directories in this file must exist or be created. This example assumes there is a Server Side group users and at least the user smbadmin. The Linxu-Server has a C-class IP adress of 192.168.1.2 and the client 192.168.1.44. The client could use any IP whith in the range of 192.168.1.1-254 ( 192.168.1.2 excluded). The subnetmask is set to 255.255.255.0 (C-class adress).
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#
#======================= Global Settings =====================================
workgroup=VINTER
server string=Scully Netprovider
log file = /var/log/samba/samba-log.%m
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=4096 SO_RCVBUF=4096
lock directory = /var/lock/samba
domain logons = yes
hide dot files = yes
time server = true
logon drive = h:
#added 990126
fstype = EXT2
# these setting maight influence performance,
domain master = yes
prefered master = yes
wins support = yes
#==========LOGIN SCRIPT================================================
#Login script should reside in the NETLOGON share see share definitions.
#Contains of entries like " NET USE H: /HOME"
logon script = login.bat
#============================ Share Definitions ==============================
[homes]
writable = yes
comment = Home Directories
browseable = no
sync always = yes
[netlogon]
delete readonly = yes
comment = Network Logon Service
; write list = bin
writable = yes
path = /home/netlogon
; sync always = yes
public = yes
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
[Profiles]
path = /home/profiles
browseable = no
guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
[public]
; mangle case = no
printable = no
delete readonly = yes
comment = Public
writable = yes
path = /usr/local/pub
public = yes
write list = @users
[home]
; mangle case = no
printable = no
delete readonly = yes
comment = Public
writable = yes
path = /home
public = no
write list = @users
[src]
comment = red_kernel
path = /usr/src
[WEB]
writable = yes
comment = WEB root
path = /home/httpd/html
write list = @users
[Burn_tmp]
delete readonly = yes
writable = yes
wide links = no
comment = Temporary dir to store cdr-images and mp3 files
path = /usr/local/cdburn_tmp
public = yes
[gameland]
writable = no
path = /mnt/fat
-----------------------------
Now define which user(s) that should have access to the SAMBA-service by running the smbadduser utility.
To connect a w95/98 client make sure that Client for Microsoft Network and TCP/IP is installed. Set the client to log into a windows NT domain. Use the name specified in the Linux-box smb.conf file. (I´ve used VINTER). Set the wins-server setting to match the Linux-box´s IP-adress. If you have a DNS-server service set up specify that as well in DNS-configuration. If everything has gone OK you should now be able to log in and have access to the Linux-box.
4.2.2.2 NT
If You want a NT client to join your domain you have to some more config, you have to create a computer account for each NT client. See http://www.samba.org. If everything has gone OK you should now be able to log in and have access to the Linux-box.
Last updated 1999-03-18 by Christian Holm.