InMotion Hosting Support Center

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.

Support Center Login

Social Media Login

   
Social Login Joomla

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
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
11,156 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.
n/a Points
2014-07-08 10:34 am

Thank you it works!!

n/a Points
2014-07-09 5:22 pm

thanks. that was helpful

n/a Points
2014-11-06 11:38 am

You guys are my new best friends!

you are right, I was missing the files, because I ditched a theme that was ticking me off. That will teach me to stay calm. I put the files back in home folder, however Im not sure if I put them in the correct place.

Thank you for this assitance. Your help is amazing I would have never found the problem by myself  whew!

I'm faving this site.

n/a Points
2015-02-08 5:00 pm

Thanks a lot, this post was very successful

n/a Points
2015-04-25 1:51 am

Thanks so much! This worked perfectly!

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

8 Questions & Comments

Post a comment

Back to first comment | top

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!