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.
- Navigate to path /home/username/
cd /home/username/ - Create /etc directory
mkdir etc