Click to See Complete Forum and Search --> : adding users to Samba


itguy1978
09-03-2002, 12:22 AM
When I enter the command smbpasswd "username" I asks for a password. I enter it and then reenter it and I get this error.

unable to open passdb database.
Failed to find entry for user "username".
Failed to modify password entry for user "username".

If it helps I am running Red Hat 7.3 and using Samba version 2.2.3a-6.

I have added the username and created a password for the box itself it is just not wanting to be added to the samba.

I am logged in as root.

Any help would be great.

Thanks:confused:

cowanrl
09-03-2002, 04:51 AM
When you create a Samba user, you need to use:

smbpasswd -a username

It will prompt you for the password twice.
The first time you execute smbpasswd, you will get the error message that the database doesn't exist but it will create the database.

If you just use

smbpasswd username

it attempts to change the user's password. If the user hasn't been created yet, it can't change the password. Hence your error message.

itguy1978
09-03-2002, 12:56 PM
Thanks for helping again everyone. That fixed the problem. I must say that this Forums has really helped me work through all of the problems that I have been having with Linux. You guys are great.

Thanks cowanrl for the help.

cowanrl
09-03-2002, 08:32 PM
You're welcome.