smb-clients digest, Vol 1 #155 - 1 msg - Join NT machines

Sergio Luna Garrido slunanet at
Fri Oct 4 16:18:08 GMT 2002

try with

useradd -a -s /bin/false -d /dev/null namemachine\$

the backslash before of the $ is very important else is asumed as a variable

passwd -l namemachine\$

be sure of write the backslash

smbpasswd -a -m namemachine

without the backslash ( samba add it )

>From: smb-clients-request at
>Reply-To: smb-clients at
>To: smb-clients at
>Subject: smb-clients digest, Vol 1 #155 - 1 msg
>Date: Thu, 03 Oct 2002 16:00:04 +0000
>Send smb-clients mailing list submissions to
>	smb-clients at
>To subscribe or unsubscribe via the World Wide Web, visit
>or, via email, send a message with subject or body 'help' to
>	smb-clients-request at
>You can reach the person managing the list at
>	smb-clients-admin at
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of smb-clients digest..."
>Today's Topics:
>    1. Samba as PDC, Joining NT client to domain (Richard Fox)
>Message: 1
>From: "Richard Fox" <rfox at>
>To: <smb-clients at>
>Subject: Samba as PDC, Joining NT client to domain
>Date: Wed, 2 Oct 2002 14:41:04 -0400
>This is a multi-part message in MIME format.
>Content-Type: text/plain;
>	charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>Hi all,
>I have my samba 2.2.2a running as PDC on my RH 7.3 system. Here is my =
>         workgroup =3D MYGROUP
>         netbios name =3D THOR
>         server string =3D Samba PDC %v %h
>         hosts allow =3D 192.168.0., 127.
>         max log size =3D 50
>         security =3D user
>         smb passwd file =3D /etc/samba/smbpasswd
>         encrypt passwords =3D Yes
>         unix password sync =3D yes
>         passwd program =3D /usr/bin/passwd %u
>         passwd chat =3D *New*password* %n\n *Please*retype*new*password* =
>%n\n *password*successfully*updated*
>         os level =3D 64
>         local master =3D yes
>         domain master =3D yes
>         preferred master =3D yes
>         domain logons =3D yes
>         logon home =3D \\%L\%U
>         logon drive =3D H:
>         logon script =3D netlogon.bat
>         add user script =3D /usr/sbin/useradd -d /dev/null -g machines =
>-s /bin/false -M %u
>         comment =3D Network Logon Services
>         path =3D /home/samba/netlogon
>         writeable =3D No
>         share modes =3D No
>         path =3D /home/samba/profiles
>         browseable =3D No
>         comment =3D Home Directories
>         path =3D %H
>         writeable =3D Yes
>         valid users =3D %S
>         create mode =3D 0664
>         directory mode =3D 0775
># smbclient -L localhost
>Anonymous login successful
>Domain=3D[MYGROUP] OS=3D[Unix] Server=3D[Samba 2.2.3a]
>         Sharename    Type      Comment
>         ---------            ----        -------
>         homes           Disk      Home Directories
>         netlogon         Disk      Network Logon Services
>         IPC$              IPC       IPC Service (Samba PDC 2.2.3a thor)
>         ADMIN$         Disk      IPC Service (Samba PDC 2.2.3a thor)
>         Server            Comment
>         ---------            -------
>         THOR            Samba PDC 2.2.3a thor
>         Workgroup     Master
>         ---------            -------
>         MYGROUP    THOR
>I created a machine account by hand
># /usr/sbin/useradd -g machines -d /dev/null -c "mercury" -s /den/false =
># passwd -l mercury$
># /usr/bin/smbpasswd -a -m mercury
>But my NT box, mercury, cannot join the domain. When I go into =
>Identification Changes and change the domain to MYDOMAIN, I get
>"The domain controller for this domain cannot be located"
>Yet I can ssh in to the PDC machine, it is on the network. Can someone =
>Content-Type: text/html;
>	charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><META http-equiv=3DContent-Type content=3D"text/html; =
><META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
><BODY bgColor=3D#ffffff>
><DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>I have my samba 2.2.2a running as PDC =
>on my RH 7.3=20
>system. Here is my smb.conf</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial=20
>size=3D2>[global]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>workgroup =3D=20
>MYGROUP<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netbios name =3D=20
>THOR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server string =3D =
>Samba PDC %v=20
>%h<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hosts allow =3D =
>127.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; max log size =3D=20
>50<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; security =3D=20
>user<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; smb passwd file =3D=20
>/etc/samba/smbpasswd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>passwords =3D Yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unix =
>password sync=20
>=3D yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; passwd program =3D =
>/usr/bin/passwd %u<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; passwd =
>chat =3D=20
>*New*password* %n\n *Please*retype*new*password* %n\n=20
>bsp; os=20
>level =3D 64<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local master =
>yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain master =3D=20
>yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; preferred master =3D=20
>yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain logons =3D=20
>yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logon home =3D <A=20
>logon drive =3D H:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logon =
>script =3D=20
>netlogon.bat<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add user =
>script =3D=20
>/usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M=20
>%u<BR>[netlogon]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comment =
>=3D Network=20
>Logon Services<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path =3D=20
>/home/samba/netlogon<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>writeable =3D=20
>No<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; share modes =3D=20
>No<BR>[Profiles]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path =3D=20
>/home/samba/profiles<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>browseable =3D=20
>No<BR>[homes]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comment =3D =
>Directories<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path =3D=20
>%H<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writeable =3D=20
>Yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valid users =3D=20
>%S<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; create mode =3D=20
>0664<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; directory mode =3D=20
><DIV><FONT face=3DArial size=3D2># smbclient -L =
>face=3DArial size=3D2>
><DIV><BR>Anonymous login successful<BR>Domain=3D[MYGROUP] OS=3D[Unix] =
>Disk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Home=20
>Disk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Network Logon=20
>IPC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPC Service (Samba PDC 2.2.3a=20
>Disk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPC Service (Samba PDC 2.2.3a =
>PDC 2.2.3a thor</DIV>
><DIV>I created a machine account by hand</DIV>
><DIV># /usr/sbin/useradd -g machines -d /dev/null -c "mercury" -s =
><DIV># passwd -l mercury$</DIV>
><DIV># /usr/bin/smbpasswd -a -m mercury</DIV>
><DIV><FONT face=3DArial size=3D2>But my NT box, mercury, cannot join the =
>When I go into Identification Changes and change the domain to MYDOMAIN, =
><DIV><FONT face=3DArial size=3D2>"The domain controller for this domain =
>cannot be=20
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>Yet I can ssh in to the PDC machine, it =
>is on the=20
>network. Can someone help?</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>Rich</DIV></FONT></BODY></HTML>
>smb-clients mailing list
>smb-clients at
>End of smb-clients Digest

MSN Fotos: la forma más fácil de compartir e imprimir fotos.

More information about the smb-clients mailing list