The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Missing/Cannot Add FTP Accounts

Discussion in 'General Discussion' started by frisbees, Apr 2, 2014.

  1. frisbees

    frisbees Member

    Joined:
    Feb 26, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. MilesWeb

    MilesWeb Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2012
    Messages:
    174
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi There. Could you please check the ownership/permission set on ftpquota ? What does it show ?
     
  3. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
  4. frisbees

    frisbees Member

    Joined:
    Feb 26, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    They are 555. Already considered that. And there are other accounts on the same server that work fine.
     
  5. es2alna

    es2alna Well-Known Member

    Joined:
    Mar 30, 2014
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Could you please provide the output of theses commands?

    Code:
    lsattr /home/<username>/etc/ftpquota
    lsattr /
     
  6. frisbees

    frisbees Member

    Joined:
    Feb 26, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  7. frisbees

    frisbees Member

    Joined:
    Feb 26, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page