Unable to Update the Quota File When Creating an FTP Account
I've created an FTP account with the root /home/$user/bkp. The purpose is to back up some files remotely through a software that uses an FTP protocol.
While doing so I got an error: Error detected with pure-quotacheck for bkp [/home/$user/bkp]: Unable to update the quota file (.ftpquota): [Permission denied]
I also get the same error when I try to update the quota of the mentioned account.
These are the permissions of some of the folders on my system:
0555 /
0755 /etc
0755 /var
0755 /home/$user/bkp
Why is this happening?
-
Hey hey! What do you get when you run this? ls -lah /home/username/.ftpquota I'd expect it to be 600 with username:username ownership. /home/username is always 711 with username:username ownership. Those are the two most likely paths that would cause this behavior. 0 -
Interestingly enough none of my users have .ftpquota files in their home directories. But I figured it out. The issue was not with permissions but with ownership. - When I created the
/home/user/bkp
folder for a user I was logged in as root, which set ownership of the folder toroot:root
. - No wonder cPanel couldn't create/edit the .ftpquota file since its ownership is
user:user
. - So I ran the command
chown user: /home/user/bkp
to give this folder auser:user
ownership so it will become usable by the user. - I edited the FTP account quota through cPanel and the .ftpquota file was created.
0 - When I created the
-
That would do it!! 0
Please sign in to leave a comment.
Comments
3 comments