no-such-file-or-directoryWhen setting up an email account in the cPanel email accounts, you may encounter the following error.

Error
File open for /home/userna5/etc/domain.com/passwrd failed with error No such file or directory

This error occurs when the etc folder was deleted or renamed inside your home directory of your files.

How to fix the No such file or directory error

  1. First, contact tech support to see if you can have your files restored from a backup.

    If support does not have the files in the backups, proceed to step 2.

  2. Login into your cPanel.
  3. Go to the File Manager. Select the Home directory and click Go.
  4. Check for the following Necessary files for your server to function. The following are the files you need for your server.

    - public_html
    - public_ftp
    - mail
    - etc

    If any of these are missing, you can just recreate them in the file manager. Once you have the etc and/or the mail folder created, your will be able to create email addresses again.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Comments

Post a comment
2013-08-19 12:55 pm
hey, Muchas gracias por tu ayuda, me ayudo completamente.
2013-11-13 7:04 am
thanks. i recreate the etc folder, and recreate my email account but all my previous message in the inbox are empty why?
Staff
4,023 Points
2013-11-13 8:53 am
If you made any modifications to the mail directory or had previously removed the email account in question, it will cause any email messages to be removed. I recommend requesting a restore from backups as one may be available for you.

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2002
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5275

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!