cPanel - Can't create mail accounts - No such file or directory: /home/user/etc/domain.com/passwd




Error:

When creating a mail account using cpanel, it is showing an error as showing below.


                                                                Error

File open for /home/user/etc/domain.com/passwd failed with error No such file or directory


Solution:

The error is because of the the wrong permssions or missing of the 'etc' directory in user's document root.
You can create a new direcory in that name and given permissions as like follows to solve the issue.
Let 'arun' be the cpanel user having  the issue.

root@server [~]# cd /home/arun
root@server [/home/arun]# mkdir etc
root@server [/home/arun]# chmod 750 etc
root@server [/home/arun]# chown arun.mail etc

Try creating mail accounts again....

Leave a Reply