Cannot open the user password file

santovito

Verified User
Joined
Nov 23, 2008
Messages
143
Hi,

after directadmin update, if I try create an email address, DA returned me this error: Cannot open the user password file for reading

- no problem with disk space
- no problem with permission (mail:mail) with file /etc/virtual/domain.xx/passwd
- DA can't create passwd.lock (open error for /domain.xx/passwd.lock)

How can I fix this problem?

Thank You

Vito
 
Last edited:
for special needs I still custombuild version 1.2 with PHP 5.2 as primary version. It may be the one that does not read the file?


EDIT:
I believe I found the problem:

/domain.xx: No such file or directory

where directadmin search domain? I find the same error in the log, if I try to suspend or unsuspended an account
 
Last edited:
Try use this:

Code:
/usr/local/directadmin/scripts/fix_da_user.sh
DirectAdmin data restore (beta)

Usage: /usr/local/directadmin/scripts/fix_da_user.sh <username> <user|reseller|admin> (<domain>)

<username> is required.
<user|reseller|admin> is to specify that this user is a reseller, or an admin.
(<domain>) is an optional 3rd argument to speicfy if there is supposed to be a domain under this account.

Note: the creator in the user.conf will be set to 'admin'. If it should be something else, edit the CREATOR value in this script

Regards
 
Hi Sellerone,

the permission are ok:

- /etc/virtual/domain.xx mail:mail
- passwd: mail:mail

open error for /domain.xx/passwd.lock: No such file or directory
/domain.xx: No such file or directory

the files are all correct but directadmin doesn't find anything
 
That's because DA is looking for /domain.xx/passwd instead of /etc/virtual/domain.xx apparently, that's odd

Can you paste the output for:
cat /usr/local/directadmin/conf/directadmin.conf | grep emailvirtual

Regards
 
YEA! THANK YOU!


in my directadmin.conf not exist directive 'email virtual'

I've set: emailvirtual=/etc/virtual

The problem is fix now :-)
 
Cool, i tought /etc/virtual was the standard if not present, i'll point DA Staff to this thread to take a look, maybe is a bug.

Glad you've fixed your issue.

Regards
 
Some of the older variables (including emailvirtual) don't have internal defaults, so if they're missing from the directadmin.conf, you'll get errors.
However, all directadmin.conf templates should have emailvirtual set in it for new installs, eg:
/usr/local/directadmin/data/templates/directadmin.conf
so let me know if emailvirtual is missing from that file in your case, as that would be an error (not aware of any missing values though)

John
 
Hi John,

emailvirtual is present in /usr/local/directadmin/data/templates/directadmin.conf
 
hello

i also got the same error. do I have to add /usr/local/directadmin/data/templates/directadmin.conf in the editor file? how do i add the file?
 
I just got this error today, presumably in relation to a da update. Somehow my /etc/virtual/domainxx directory got renamed to a subdomain. I moved it back to the correct domain name and my email users seem to be working again.
 
i also got the same error.
Guys, this is why you should create new posts if fixes don't work and don't rely or up ancient posts.
Create a new one and refer to here.

The emailvirtual is an internal default nowadays, we're 8 years further.
Unless you're running an ancient DA version.
 
Back
Top