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> </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> </DIV>
><DIV><FONT face=3DArial=20
>size=3D2>[global]<BR> =
>workgroup =3D=20
>MYGROUP<BR> netbios name =3D=20
>THOR<BR> server string =3D =
>Samba PDC %v=20
>%h<BR> hosts allow =3D =
>192.168.0.,=20
>127.<BR> max log size =3D=20
>50<BR> security =3D=20
>user<BR> smb passwd file =3D=20
>/etc/samba/smbpasswd<BR> =
>encrypt=20
>passwords =3D Yes<BR> unix =
>password sync=20
>=3D yes<BR> passwd program =3D =
>
>/usr/bin/passwd %u<BR> passwd =
>chat =3D=20
>*New*password* %n\n *Please*retype*new*password* %n\n=20
>*password*successfully*updated*<BR> &n=
>bsp; os=20
>level =3D 64<BR> local master =
>=3D=20
>yes<BR> domain master =3D=20
>yes<BR> preferred master =3D=20
>yes<BR> domain logons =3D=20
>yes<BR> logon home =3D <A=20
>href=3D"file://\\%L\%U">\\%L\%U</A><BR> &nbs=
>p; =20
>logon drive =3D H:<BR> logon =
>script =3D=20
>netlogon.bat<BR> add user =
>script =3D=20
>/usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M=20
>%u<BR>[netlogon]<BR> comment =
>=3D Network=20
>Logon Services<BR> path =3D=20
>/home/samba/netlogon<BR> =
>writeable =3D=20
>No<BR> share modes =3D=20
>No<BR>[Profiles]<BR> path =3D=20
>/home/samba/profiles<BR> =
>browseable =3D=20
>No<BR>[homes]<BR> comment =3D =
>Home=20
>Directories<BR> path =3D=20
>%H<BR> writeable =3D=20
>Yes<BR> valid users =3D=20
>%S<BR> create mode =3D=20
>0664<BR> 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> </DIV>
><DIV> =20
>Sharename Type =20
>Comment<BR> =20
>--------- &nbs=
>p;=20
>---- -------<BR> &nbs=
>p; =20
>homes =20
>Disk Home=20
>Directories<BR> =20
>netlogon =20
>Disk Network Logon=20
>Services<BR> =20
>IPC$ &nb=
>sp; =20
>IPC IPC Service (Samba PDC 2.2.3a=20
>thor)<BR> =20
>ADMIN$ =20
>Disk IPC Service (Samba PDC 2.2.3a =
>thor)</DIV>
><DIV> </DIV>
><DIV> =20
>Server &=
>nbsp;Comment<BR> =20
>--------- &nbs=
>p;=20
>-------<BR> =20
>THOR &nb=
>sp;Samba=20
>PDC 2.2.3a thor</DIV>
><DIV> </DIV>
><DIV> =20
>Workgroup Master<BR> =
> =20
>--------- &nbs=
>p;=20
>-------<BR> =20
>MYGROUP 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> </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> </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