Config Samba as a NT Domain Controller

Mark Shearar samba at penguin.za.org
Fri Dec 28 06:19:02 GMT 2001


If you look at the error message you're receiving it gives you the
answer.  You must create a UNIX user called inet-p$ (as per your
attachment).  Then "smbpasswd -m -a inet-p" (as you had it but without
the $ sign).  Also it is a *very* good idea to upgrade to 2.2.2 anyway.

Regards
Mark

On Fri, 2001-12-28 at 14:13, Andrea Arquint wrote:
> hi there
>  
> case:
> i tried to configure samba 2.0.7 on suse linux 7.0
> for usage as a domain controller between linux and w2k.
>  
> w2k = windows 2000
>  
> samba works together with w2k as a workgroup in my
> config.
>  
> i try to do the same as you said on (www.samba.org)
> because there is a link to a howto page
>  
> http://bioserve.latrobe.edu.au/samba/adding.html
> or the same in the attachment "shortcut_samba_doc.txt"
>  
> the problem is:
> howto create a NTMachine-Account on linux
> 
> what i already tried is:
> the same as in attachment "addmachine.txt"
> 
> i need help! i tried a lot and a hope that somebody
> can help me
> 
> greetings
> 
> Andrea Arquint
> Switzerland
>  
>  
>  
> NexNet. 
> Fratt Arquint 
> Computer- und Netzwerktechnik
> 
> A. Arquint 
> 
>       Handy +41 (79) 673 19 56 
>       Office  +41 (41) 320 37 80  
>       Fax  +41 (41) 320 37 79  
> 
> www.nexnet.ch 
> arquint at nexnet.ch 
> 
> 
> ----
> 

> bash-2.04# smbpasswd -a -m inet-p$
> User inet-p$ does not exist in system password file (usually /etc/passwd).
> Cannot add account without a valid local system user.
> Failed to modify password entry for user inet-p$
> ----
> 

> Add NT Machines.
> 
> Every NT that will be on the domain must have its own passwd entry in both /etc/passwd and /usr/local/samba/private/smbpasswd. The /etc/passwd entry is really only to reserve a user ID , the other one stores the NT encrypted password. (Note that win95/98 machines don't need an account as they don't do any security aware things.)
> 
> First create the smbpasswd file :
> 
> touch /usr/local/samba/private/smbpasswd
> chmod go-rwx /usr/local/samba/private/smbpasswd
> 
> Now add an NT machine account, in this case for bc-06, I have a group, 'machines' (you will need to add that yourself or use another group name), there should be no password, shell or home directory and the name is the NTws name with a '$' added at the end. :
> 
> adduser –g machines –c NTMachine –d /dev/null –s /bin/false –n bc-06$ 
> 
> Note : FreeBSD adduser does not like finding '$' in a user name, add the entry directly to /etc/passwd using vipw or similar.
> 
> Add that name to smbpasswd (assumes you have a link to smbpasswd on path) :
> 
> smbpasswd –a –m bc-06$






More information about the samba mailing list