How to add machine accounts?

Dave J. Andruczyk dave at
Fri Apr 9 13:53:34 GMT 1999

> Ok... I guess I didnt make myself clear enough.
> I have the trailing $ at the machine-accounts name wich is the 
> username in the /etc/passwd... 
> but when I run smbpasswd it still complains about the account 
> would not be existend... ??!!!?!?... 
> Here is what I do:
> 1. Edit /etc/passwd, add the following line:
> mypdc$:dummy:1001:1001:test:/dev/nul:/usr/sbin
> 2. Save /etc/passwd
> 3. Do at the prompt: 
> /usr/local/samba/bin/smbpasswd -a -m mypdc
> And I get this response:
> User "mypdc$" was not found in system password file.
> What am I missing????

Do you have SHADOW passwords enabled? if so there has to be the mating
line in /etc/shadow.  Its usually easiest to use the system "adduser" tool
for creating the machine accounts. i.e?( on redhat 5.x "adduser -n
mypdc$") (the "-n" turns off redhats "user private groups" which suck

Dave J. Andruczyk
Instructional Support Associate
Department of Technology     
Buffalo State College

More information about the samba-ntdom mailing list