Config Samba as a NT Domain Controller

Andrea Arquint arquint at nexnet.ch
Fri Dec 28 04:19:03 GMT 2001


Skipped content of type multipart/alternative-------------- next part --------------
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$
-------------- next part --------------
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