[Samba] Re: Enabling user accounts

John D Paul jdpaul at gocolumbiamo.com
Wed Sep 6 16:56:56 GMT 2006


Solved my own problem. The smbpasswd file was not formatted correctly
causing pdbedit to not read the account flags. After I reformatted the file
the accounts imported correctly.

I would, however, like to find a way to enable a user account without having
to set a password. Is this possible?

John D Paul wrote:

> I'm importing an smbpasswdfile to a tdbsam file. I run pdbedit -i
> smbpasswd -e tdbsam and all the user accounts are successfully imported.
> The problem is that all of the user accounts that get imported are
> disabled. The user accounts are not disabled in the smbpasswd file. I
> could run smbpasswd -e <username> for each user in the smbpasswd file,
> however smbpasswd requires that you set a password when you enable a user
> account, rendering the import completely worthless. Any ideas?
> 




More information about the samba mailing list