Help me Please

Abhaya Kumar Samal kabhaya at
Thu Nov 29 09:51:56 GMT 2001

Kind Attention: Andrew Tridgell
                Jeremy Allison
                Luke Kenneth Casson Leighton
                John H Terpstra

Dear Sir,

Good wishes. I am in big trouble. Please, help me. I
am trying to setup and configure our college network.
It comprises of the following:

1. RedHat Linux Server, Assembled PC, 20GB IDE, P-III,
400 MHz, 256 MB MM
   eth0: IP Address:, Net Mask:, Network:
   eth1: IP Address:, Net Mask:, Network:
   Host Name:
   Connected directly (Crossover UTP) to the intranet
Server over to
2. RedHat Linux Server, Compaq ProLiant ML-350,
18.2GBx2 SCSI, 256 MB MM, 866 MHz
   eth0: IP Address:, Net Mask:, Network:
   eth1: IP Address:, Net Mask:, Network:
   Host Name:
   This is the Samba Server, with:
   workgroup = NTDOM
   netbios name = NTSERV
   Connected to the Network HUB over This
is the internal network.
3. NT Server (PDC), Assembled PC, 20GB IDE, P-III, 800
MHz, 256 MB MM
   IP Address:
   Domain Name = NTDOM
   NetBIOS name = NTPDC
4. NT Workstations, Assembled PC, 20GB IDE, P-III, 800
MHz, 256 MB MM
   NetBIOS Names: <Lab.Code>WS<Machine Sl.No.>, e.g.,
LB1WS01, LB1WS02, etc.
  IP Addresses: to

All installations were successful. Samba 2.0.7 was
installed and configured. Logon from Windows98
Workstations were successful. But, I failed to put the
NT Workstations onto the domain. NT Version was 4.0
with NT Service Pack 6a installed both at the Server
(NTPDC) and Workstation (LB1WS01). Error message
displayed was:
"Unable to connect to the domain controller for this
domain. Have your administrator check your computer
account on the domain.". Linux Version is RedHat 7.1.

Following tasks were performed after successful
installation of Samba Server and establishing
connectivity with Windows98 Machines.

On the NT Server (NTDOM/NTPDC):
Through Server Manager for Domains, added the Samba
Server as Windows NT Workstation Machine by the
NetBIOS Name: NTSERV to the Domain.

On the Samba Server (NTDOM/NTSERV):
Stopped the Samba daemon: root#service smb stop
Made the Samba Server to join the Domain: root#
smbpasswd -j NTDOM -r NTPDC
Response: Joined domain NTDOM
Confirmed the creation of file
Made necessary changes to the /etc/samba/smb.conf. The
listing of smb.conf is appended herewith at the end
for your kind reference.
Then, created a group for the NT Workstation's machine
account on the Samba Server (NTSERV):
  root# groupadd ntmachines
Created Machine account as: root# adduser -d /dev/null
-c "NT Machines" -s /bin/false -g ntmachines -n
Updated the Samba Password file by: root# smbpasswd -a
-m LB1WS01$
Started the Samba daemon: root# service smb start

On the NT Workstation (LB1WS01):
Tried to login through Workgroup setting = NTDOM in
Network -> Properties -> Identification Tab. Failed.
But found at the NTPDC through the Network Browser
that all are displayed (NTPDC, NTSERV and LB1WS01). At
Samba Server, the command: root# smbclient -L NTSERV
also displayed all these NetBIOS names under the
Server Column.
Tried to put the NT Workstation (LB1WS01) onto the
Domain by changing the Workgroup to Domain setting in
Network -> Properties -> Identification Tab. But on
clicking Ok, instead of getting "Welcome to domain
NTDOM" message, I got the message "Unable to connect
to the domain controller for this domain. Have your
administrator check your computer account on the

Clarifications Requested (Beyond the Current Problem
1. Is it necessary to have both NT Server PDC (NTPDC)
and Samba Server (NTSERV) to coexist concurrently in
the Samba NT Domain (NTDOM)?
2. Is it required to reinstall the NT Workstation OS
S/w every time it fails to establish the connectivity?
3. I want to add one printer (Laser Printer) to the NT
Server (NTPDC) and another printer (High Speed Dot
Matrix Printer) to the Samba Server. I want both the
printer to be sharable and accessible at the
workstation. Does it require any special attention at
the time of configuring it?
4. I want to add two more server to the network (one
SUN Solaris for Intel i386 Server and another FreeBSD
Server). They will be accessible only through Telnet
and FTP Service. Will there be any problem in
incorporating them on the network?

Kindly help me to establish the connectivity and
suggest me what to do.

Waiting eagerly for your valued response at the


Abhaya Kumar Samal,
Professor and Head,
Dept. of Comp. Sc. & Engg.,
Nepal College of Information Technology,
Imadol VDC, EPC 1525, GPO Box: 8975,
Kathmandu, Nepal.
Phone: +977-1-543084
E-mail: kabhaya at

# This is the main Samba configuration file for NCIT
Samba Domain NTDOM
#========================= Global Settings
   workgroup = NTDOM
   netbios name = NTSERV
   server string = %h - NCIT Samba Server
   hosts allow = 192.168.1. 127.
   printcap name = /etc/printcap
   load printers = yes
   printing = bsd
   log file = /var/log/samba/%m.log
   max log size = 50
   security = domain
   password server = NTPDC
   time server = true
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
   ssl CA certFile =
   null passwords = no
   interfaces =
   os level = 65
   local master = no
   preferred master = yes
   domain master = yes 
   domain logons = yes
   logon script = startup.bat
   wins support = yes
   dns proxy = no 
   preserve case = no
   logon drive = Y:

#============================ Share Definitions
   comment = NT User's Home Directories
   browseable = no
   writable = yes
   read only = no
   path = %H
   valid users = %S
   mangle case = yes
   create mask = 0750

   comment = Network Logon Service
   path = /home/netlogon
   guest ok = yes
   writable = no
   share modes = no
   locking = no
   public = no
   browseable = yes
   case sensitive = no
   default case = yes
   create mask = 0644
   directory mask = 0755

   path = /home/profiles
   browseable = no
   read only = no
   guest ok = yes
   create mask = 0600
   directory mask = 0700

   comment = Samba Network Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   printable = yes

   comment = User's Public Stuff Directory
   path = /home/ftp/pub
   public = yes
   only guest = yes
   writable = yes
   printable = no

Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.

More information about the samba mailing list