Tech, filmmaking, & thoughts.
Fix: Could not edit /home/username/etc/ftpquota
#1 – The Problem
When you try to create or modify FTP users in cPanel, you receive: Error. Could not edit /home/username/etc/ftpquota
The only times I have seen this error is when you are transferring a cPanel account over from one web host to another one. The other host is using a non-standard method for the way accounts are set up. In this example, the transfer was coming from SiteGround. Siteground has their users’ etc folders created as Symbolic links as opposed to stored in the users’ home folders.
A quick way to verify if this is your problem is to do an ls. If you see the following, then its a problem:
root@vps [/home/username]# ls -la | grep etc etc -> /sdb/backup/mails/username/etc
#2 – The Fix
2.1
The best way would be to contact the old hosting company. Ask them to remove the symlink and copy its former destination into your home folder. i.e.:
cp -rfp /sdb/backup/mails/username/etc /home/username/
Once that is finished, transfer the account again like normal.
2.2
In case your old host says no, or you simply want to do it yourself, there is an easy alternative. However, cPanel will no longer recognise any of your previous FTP users, email accounts, or forwarders. You will have to re-create them all.
Delete the symlink and create an etc folder inside your home directory. The beauty of cPanel is that it will automatically create the necessary files inside the new folder when you set up new FTP and mail users.
rm -f etc/ mkdir etc/ chown username:mail etc/
Latest posts by Jacob "Boom Shadow" Tirey (see all)
- Backing Up and Restoring MySQL Databases - November 27, 2012
- cPanel’s Webinar on WHM 11.34 features - November 7, 2012
- How to still get a free DynDNS account - October 18, 2012
| Print article | This article written by: Jacob "Boom Shadow" Tirey on January 23, 2011 at 12:58 am, and is filed under Fixes. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
-
Dj




