Help : Adding smb user on MAC OS X

nandkumar l mane nandu_mane at
Mon Jul 26 05:08:38 GMT 2004


On Wed, 21 Jul 2004 Peter Waechtler wrote :
>Am Dienstag, 20. Juli 2004 19:35 schrieb nandkumar l mane:
> >
> > I am trying to add smb user using command
> >   smbpasswd -a Nandkumar
> > But I was not able to create smb user.
> >
> > I am getting the following error message.
> >
> > could not find new user/computer Nandkumar in passdb.
> > Failed to initialise SAM_ACCOUNT for user Nandkumar.
> > Failed to modify password entry for user Nandkumar
> >
> > Nandkumar is already a system user.I am using smbd version 3.0.2 on Mac OS
> > X 10.3.2 - Darwin Kernel Version 7.3.0.
> >
> > I have also tried the same on linux machine and it worked fine for me.
> > I am not able to understand why samba gives the error on Mac OS X.
> > Please help me to solve this problem.
> >
>Just a hint: MacOSX uses netinfo and has /etc/passwd and /etc/master.passwd
>(like other BSDs)
>What is
>nidump passwd .
>saying? (notice the dot at the end of the command)
>The system user will be in there and smbpasswd seems to look in
when I create user in MACOSX it doesn't makes entry 
in /etc/{passwd|master.passwd}.so when I fire command 
smbpasswd -a user_name it doesn't get entry in passdb.
so it gives me error.

But After firing command nidump passwd . it shows all system users.

if I am following same procedure on linux it works properly.
1.Create system user  2.create smb user using smbpasswd

Thanks and Regards 

More information about the samba-technical mailing list