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..??
Brandon Hagedorn wrote:> > 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:[cut]> 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..??You have to use vipw to edit your accounts, infact after saving them into /etc/passwd you have to update /etc/master.passwd too. You can use pwd_mkdb command to do the same thing, I suppose, but I prefer vipw to edit my accounts Good luck
I fixed my own problem. Was very stupid of me not to use the command
"vipw"
I was editing the password files with "vi"
Thanks all for contributing to the list!
-----Original Message-----
From: samba-bounces+bhagedor=iastate.edu@lists.samba.org
[mailto:samba-bounces+bhagedor=iastate.edu@lists.samba.org] On Behalf Of
Brandon Hagedorn
Sent: Sunday, March 09, 2003 5:23 PM
To: samba@lists.samba.org
Subject: [Samba] not able to add machines on FreeBSD 4.7
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
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@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 >