Missing/Cannot Add FTP Accounts

frisbees

Member
Feb 26, 2008
15
0
51
I'm having an issue on my cPanel servers where when I try to add a new FTP user, I get an error message:

"Could not edit /home/<username>/etc/ftpquota"

The file is editable by the account (I checked the permissions).

If I try to create it again, it tells me:

"The FTP account with the login "<new ftp username>" already exists"

Look at the main page of that cPanel account, I can see that the FTP user has been added, but when looking at FTP Accounts under that cPanel account, none are listed. Not even the normal ones that are created automatically.

How do I get the FTP Accounts section to work properly again? I can't even remove the accounts I created because they are not listed.
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
Hello,

Please type the following command and paste the results here:

Code:
stat /
I suspect the permissions on / folder or partition are incorrect.

The default permissions should be 755 or 555.
 

frisbees

Member
Feb 26, 2008
15
0
51
They are 555. Already considered that. And there are other accounts on the same server that work fine.
 

frisbees

Member
Feb 26, 2008
15
0
51
Could you please provide the output of theses commands?

Code:
lsattr /home/<username>/etc/ftpquota
lsattr /
It's not permissions as there are other accounts that work on the same server.

But, for the sake of argument:

#lsattr /home/<username>/etc/ftpquota
-------------e- /home/<username>/etc/ftpquota

#lsattr /
----i--A-----e- /quota.user
-------------e- /media
-------------e- /core.45058
-------------e- /core.1047402
lsattr: Operation not supported While reading flags on /scripts
-------------e- /core.603117
lsattr: Inappropriate ioctl for device While reading flags on /dev
-------------e- /razor-agent.log
-------------e- /core.176758
-------------e- /core.737789
-------------e- /core.707615
-------------e- /boot
-------------e- /core.588311
-------------e- /core.511428
-------------e- /lib
-------------e- /core.144309
-------------e- /core.770770
-------------e- /srv
--------------- /lost+found
-------------e- /core.369112
-------------e- /root
-------------e- /opt
-------------e- /core.48988
lsattr: Inappropriate ioctl for device While reading flags on /proc
-------------e- /mnt
-------------e- /selinux
lsattr: Inappropriate ioctl for device While reading flags on /sys
-------------e- /sbin
-------------e- /bin
-------------e- /var
-------------e- /core.953041
-------------e- /core.563332
----------I--e- /lib64
-------------e- /core.350830
----------I---- /tmp
-------------e- /usr
-------------e- /core.77184
-------------e- /core.863457
-------------e- /home
-------------e- /core.577584
----------I--e- /etc
-------------e- /core.649353
-------------e- /core.916543
-------------e- /backup
-------------e- /core.950928
-------------e- /core.1017153
 

frisbees

Member
Feb 26, 2008
15
0
51
I submitted a cPanel support ticket and the assigned tech found that the disk space for that account had been exceeded. Fixing that issue fixed this issue. Feel like this is a flaw as disk space shouldn't make creating FTP show up in place but not the other but that is the fix in case someone else finds this post.