Problems with smbpasswd -a -m wsname$

Andrew Perrin - Demography aperrin at demog.Berkeley.EDU
Fri May 21 14:30:48 GMT 1999


The correct command is -m -a ppmc02
(note WITHOUT the $ on the end).  Based on your output, though, it also
looks like perhaps when you created your smbpasswd file you accidentally
overwrote your smbpasswd binary.  the one in /usr/local/samba/bin is a
binary (or should be); it looks like you've got your smbpasswd file there
instead.

 
---------------------------------------------------------------------
Andrew J. Perrin - aperrin at demog.berkeley.edu - NT/Unix Admin/Support
Department of Demography    -    University of California at Berkeley
2232 Piedmont Avenue #2120  -    Berkeley, California, 94720-2120 USA
http://demog.berkeley.edu/~aperrin --------------------------SEIU1199

On Fri, 21 May 1999, Michael Glauche wrote:

> Tomek Jarosinski schrieb:
> > 
> > I compiled and installed last sambacvs. I created smbpasswd, and now i
> > would like to add machine accounts. File smbpasswd looks like this:
> > #
> > # SMB password file.
> > #
> > root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
> > ]:LCT-00000000:Super-User
> > daemon:1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
> > ]:LCT-00000000:
> > tomek:2005:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
> > ]:LCT-00000000:T.Jarosinski
> > ppmc02$:802:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
> > ]:LCT-00000000:NT Workstation
> > ppmc03$:803:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
> > ]:LCT-00000000:NT Workstation
> > ppmc04$:804:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
> > ]:LCT-00000000:NT Workstation
> > 
> > (I have much more users, but this is only the part of
> > /usr/local/samba/private/smbpasswd)
> > NOw i am trying to add ntws with a command:
> > 
> > /usr/local/samba/bin/smbpasswd -m -a  ppmc02$
> > 
> > and i am getting this errors:
> > /usr/local/samba/bin/smbpasswd:
> > root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U:
> > command not found
> > /usr/local/samba/bin/smbpasswd:
> > daemon:1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U:
> > command not found
> > /usr/local/samba/bin/smbpasswd:
> > bin:2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U:
> > command not found
> 
> Oops .. I think you are mixing the smbpasswd User DB and the programm
> smbpasswd
> Perhaps swat did something bad ? try finding a smbpasswd that is about
> 600 k or so 
> big, not only a few bytes. I try to keep all my config stuff in /etc,
> including the smbpasswd user db. Where does the smb passwd file in your
> smb.conf point to ?
> 
> regards,
>    Michael
> 
> --
> Samba NT-Domain howto (in german )
> http://www.connection-net.de/linux/samba/
> 



More information about the samba-ntdom mailing list