<div>If I am not running LDAP is this the way to go about the "admin"
account?</div>
<div> </div>
<div><BR><BR> </div>
<P style="MARGIN: 0px">Ronald R. McDaniel<BR>Conecuh County
Schools<BR>(251) 578-7073 x26<BR>(251) 230-0658 cell<BR><A
href="mailto:rmcdaniel@indata.us">rmcdaniel@indata.us</A></P><BR><BR>
<BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT:
blue 2px solid"><BR>-------- Original Message --------<BR>Subject: Re:
[K12OSN] samba admin account problem (from David T)<BR>From: "David
Trask" <dtrask@vcsvikings.org><BR>Date: Thu, August 04, 2005
10:01 pm<BR>To: "Support list for opensource software in
schools."<BR><k12osn@redhat.com><BR><BR>"Support list for
opensource software in schools." <k12osn@redhat.com>
on<BR>Thursday, August 4, 2005 at 6:55 PM +0000 wrote:<BR>>I know
that this is going to seem quite simple, but for some reason
this<BR>>stumps me over and over.  When I am setting up samba
as a PDC, I use the<BR>>command "smbpasswd -a root" to use the root
account as the account to<BR>>allow windoze machines to join the
domain.  I am using the create machine<BR>>account script in
smb.conf to auto add the machine account to samba. <BR>>When I try
the first one, I get the message that the username or
password<BR>>is invalid.  Can someone tell me what I am
missing?<BR>> <BR>> <BR>>Thanks so much,<BR><BR>Two things
that may have gotten you...one is...did you run  
<BR><BR>smbldap-populate –a root  <BR><BR>the second is....and the
biggest gotcha is commenting out <BR><BR>#root=administrator admin
 <BR><BR>in the /etc/samba/smbusers  file   <BR><BR>Read
below for more info....this file can be found as part of
the<BR>smbldap-installer script (which you should be using if you want
to make<BR>life a lot easier)....or at
http://web.vcs.u52.k12.me.us/linux/smbldap/  <BR>If using K12LTSP
4.4 beta...get the latest smbldap-installer (version 2)<BR>at Matt's
site http://majen.net/smbldap/<BR><BR>This is cut from my Samba/LDAP
how-to....<BR><BR>*snip*<BR><BR>Step 12: Populating the
database<BR><BR>Now we need to populate the data (ldif). This is easy
to do....simply type<BR><BR>smbldap-populate<BR><BR>Note:  In
later versions of smbldap-tools the preferred method is to
run<BR><BR>smbldap-populate –a root<BR><BR>Note:  if you do
this…skip Step 13 and proceed to Step 13a<BR><BR>this will run a script
that will populate the database with a built-in<BR>directory structure.
It should just<BR>run....any errors and something is amiss.....check
your stuff from<BR>previous steps.<BR><BR>Step 13: Setting the
Administrator password...<BR><BR>We also need to set a password and
make a tweak for a 'special" account...<BR>Administrator This
account<BR>was created when you ran smbldap-populate. It is vital as it
is the<BR>account that will be used to join<BR>Windows machines to the
Samba Domain. It must have a uid of '0". One very<BR>important thing
we<BR>need to do is comment out a line in the /etc/samba/smbusers file.
To do<BR>this let's go to the directory...<BR><BR>cd
/etc/samba<BR><BR>and then edit the file<BR><BR>gedit
smbusers<BR><BR>find the line that shows ....<BR><BR>root=administrator
admin<BR><BR>and comment it out by adding the #
symbol<BR><BR>#root=administrator admin<BR><BR>then save and
exit.<BR><BR>Now let's set the password. To set the password for the
Administrator<BR>account type...<BR><BR>smbpasswd -a
Administrator<BR><BR>and enter a password of your choosing. Don't
forget it as you'll need it<BR>when you start adding
Windows<BR>machines to your domain.<BR><BR>Step 13a: Setting the
Administrator (root) password...<BR><BR>To set the password for the
root account type...<BR><BR>smbpasswd -a root<BR><BR>and enter a
password of your choosing. Don't forget it as you'll need it<BR>when
you start adding Windows<BR>machines to your domain.<BR><BR>Note:
 When you add machines to the Windows domain (from the
Windows<BR>workstation) you will use 'root" as the user along with the
password you<BR>set here<BR><BR>*snip*<BR><BR>David N.
Trask<BR>Technology Teacher/Coordinator<BR>Vassalboro Community
School<BR>dtrask@vcsvikings.org<BR>(207)923-3100<BR><BR>_______________________________________________<BR>K12OSN
mailing
list<BR>K12OSN@redhat.com<BR>https://www.redhat.com/mailman/listinfo/k12osn<BR>For
more info see <http://www.k12os.org> </BLOCKQUOTE>