[Samba] not able to add machines on FreeBSD 4.7

Scott Millhisler sjmlistread at sjm.net
Mon Mar 10 16:11:39 GMT 2003


As an experiment what happens if you do:
   useradd sclepy$

Does it say that user sclepy$ already exists?  I wonder if there is some issue with their entries in the /etc/passwd file.  My machine entries differ slightly in that the second parameter contains an 'x' where yours contain an '*'.  I doubt that matters but I am not sure what the usage of that parameter is.

A couple of othe things to consider: (as I understand them)
-   To add a user/machine account you must be logged in as root.
-   To add a machine account the local server must be running Samba as a PDC.

Hope this was at least somewhat helpful.

Scott Millhisler
SJM Computer Consulting - Perry, Michigan

---------- Original Message ----------------------------------
From: "Brandon Hagedorn" <bhagedor at iastate.edu>
Date:  Sun, 9 Mar 2003 17:23:19 -0600

> 
>
>I'm setting up a new install of samba 2.2.7a on FreeBSD 4.7
>
>            Here's a little run-through of what I have done.
>
> 
>
>I added a machine account in /etc/group as follows:
>
>            machines:*:201
>
> 
>
>            I have added all of my machine accounts in to /etc/passwd as
>follows:
>
> 
>
>sclepy$:*:201:201::0:0:Machine account for Sclepy:/dev/null:false
>
>lexus$:*:202:201::0:0:Machine account for Lexus:/dev/null:false
>
>kellogg$:*:203:201::0:0:Machine account for Kellogg:/dev/null:false
>
>april$:*:204:201::0:0:Machine account for April's
>desktop:/dev/null:false
>
>rich$:*:205:201::0:0:Machine account for Rich's laptop:/dev/null:false
>
>mary$:*:207:201::0:0:Machine account for Mac:/dev/null:false
>
>fred$:*:208:201::0:0:Machine account for Fred's Laptop:/dev/null:false
>
>duffy$:*:209:201::0:0:Machine account for Mike's Desktop:/dev/null:false
>
>dakine$:*:210:201::0:0:Machine account for Brandon's
>machine:/dev/null:false
>
>image$:*:211:201::0:0:Machine account for Image computer:/dev/null:false
>
>buck$:*:212:201::0:0:Machine account for Another
>computer:/dev/null:false
>
> 
>
> 
>
>            Then, I proceeded to the next command to add the samba
>machine account
>
>            smbpasswd -a -m sclepy
>
> 
>
>this is the error I get ..
>
> 
>
>User sclepy$ 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 sclepy$
>
> 
>
> 
>
>Why is this happening..??
>
> 
>
> 
>
> 
>
>-- 
>To unsubscribe from this list go to the following URL and read the
>instructions:  http://lists.samba.org/mailman/listinfo/samba
>


More information about the samba mailing list