Fix :: file open /home/user/etc/domainname/passwd failed with error no such file or directory

Problem Statement


Getting error while creating an email account from cPanel.


Error Message


file open /home/user/etc/domainname/passwd failed with error no such file or directory


Solution


Normally this error occurs when 
/etc directory is removed. This directory contains an email account password and other configuration details for specific user. In order to fix this issue, you just need to create /etc directory.

  1. Navigate to path /home/username/
    cd /home/username/
  2. Create /etc directory
    mkdir etc

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Fix - cPanel Account Restore Failed: Failed to create the account. A database owner with the name “cpaneluser” already exists

One of our customers was migrated from another cPanel host. While restoring his account to our...

How to install ConfigServer Firewall to cPanel/WHM?

The ConfigServer Firewall - CSF is one of the most popular and advanced firewall suite available...

How to Install SSL Certificate on WHM/cPanel Services?

By default, all WHM/cPanel services use self signed certificate and you get warning while using...

SMTP error while using PHPMailer with GMail Authentication

Problem Statement One of our Linux VPS customer was unable to send emails through PHPMailer...

Fix :: Unable to add domain in cPanel that points to some other server

Problem Statement Unable to add domain (which is not pointing to cPanel server.) in cPanel...