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

Sergio Luna Garrido slunanet at hotmail.com
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 lists.samba.org
>Reply-To: smb-clients at lists.samba.org
>To: smb-clients at lists.samba.org
>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 lists.samba.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://lists.samba.org/listinfo/smb-clients
>or, via email, send a message with subject or body 'help' to
>	smb-clients-request at lists.samba.org
>
>You can reach the person managing the list at
>	smb-clients-admin at lists.samba.org
>
>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 sbsii.com>
>To: <smb-clients at lists.samba.org>
>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.
>
>------=_NextPart_000_000C_01C26A21.BC75B190
>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 =
>smb.conf
>
>[global]
>         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
>[netlogon]
>         comment =3D Network Logon Services
>         path =3D /home/samba/netlogon
>         writeable =3D No
>         share modes =3D No
>[Profiles]
>         path =3D /home/samba/profiles
>         browseable =3D No
>[homes]
>         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 =
>mercury$
># 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 =
>help?
>Thanks,
>Rich
>
>------=_NextPart_000_000C_01C26A21.BC75B190
>Content-Type: text/html;
>	charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Diso-8859-1">
><META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><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 =
>192.168.0.,=20
>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; =
>encrypt=20
>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
>*password*successfully*updated*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
>bsp; os=20
>level =3D 64<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local master =
>=3D=20
>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
>href=3D"file://\\%L\%U">\\%L\%U</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
>p;&nbsp;=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 =
>Home=20
>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
>0775<BR></FONT></DIV>
><DIV><FONT face=3DArial size=3D2># smbclient -L =
>localhost</FONT></DIV><FONT=20
>face=3DArial size=3D2>
><DIV><BR>Anonymous login successful<BR>Domain=3D[MYGROUP] OS=3D[Unix] =
>Server=3D[Samba=20
>2.2.3a]</DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Sharename&nbsp;&nbsp;&nbsp;&nbsp;Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Comment<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
>p;=20
>----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-------<BR>&nbsp;&nbs=
>p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>homes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Disk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Home=20
>Directories<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>netlogon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Disk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Network Logon=20
>Services<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>IPC$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
>sp;&nbsp;=20
>IPC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPC Service (Samba PDC 2.2.3a=20
>thor)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>ADMIN$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Disk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPC Service (Samba PDC 2.2.3a =
>thor)</DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
>nbsp;Comment<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
>p;=20
>-------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>THOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
>sp;Samba=20
>PDC 2.2.3a thor</DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Workgroup&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Master<BR>&nbsp;&nbsp;&nbsp;&nbsp;=
>&nbsp;&nbsp;&nbsp;=20
>---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
>p;=20
>-------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>MYGROUP&nbsp;&nbsp;&nbsp;&nbsp;THOR<BR></DIV>
><DIV>I created a machine account by hand</DIV>
><DIV># /usr/sbin/useradd -g machines -d /dev/null -c "mercury" -s =
>/den/false=20
>mercury$</DIV>
><DIV># passwd -l mercury$</DIV>
><DIV># /usr/bin/smbpasswd -a -m mercury</DIV>
><DIV>&nbsp;</DIV></FONT>
><DIV><FONT face=3DArial size=3D2>But my NT box, mercury, cannot join the =
>domain.=20
>When I go into Identification Changes and change the domain to MYDOMAIN, =
>I=20
>get</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>"The domain controller for this domain =
>cannot be=20
>located"</FONT></DIV>
><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>
>
>------=_NextPart_000_000C_01C26A21.BC75B190--
>
>
>
>--__--__--
>
>_______________________________________________
>smb-clients mailing list
>smb-clients at lists.samba.org
>http://lists.samba.org/listinfo/smb-clients
>
>
>End of smb-clients Digest




_________________________________________________________________
MSN Fotos: la forma más fácil de compartir e imprimir fotos. 
http://photos.msn.es/support/worldwide.aspx




More information about the smb-clients mailing list