550 FTP errors at user level

yais

Verified User
Joined
Jan 20, 2009
Messages
8
Hi,

I'm having a problem whereby I have created a new user account through my reseller in DirectAdmin.

I'm using the same user account info to access the FTP as I use to login to DA for that account. However, when accessing the FTP using that user account, I can't seem to overwrite files as it gives me a 550 permission denied error. I can only rewrite if I login through SFTP using the root info.

I think there is a security restriction somewhere preventing that account from overwriting files despite it being the main account for that user.

Really appreciate help.

Thanks
 
Generally this is caused by files being created by php, owned by httpd. You can fix the ownership through the Files facility in your DirectAdmin login, or you can automate changing the ownership back to the username by writing a carefully crafted cronjob to run as root.

Note I wrote carefully crafted; anytime you run a cronjob as root you risk destroying your server.

Jeff
 
You can fix the ownership through the Files facility in your DirectAdmin login

What do you mean by that statement. I can instead edit files via DA file manager but that isnt ideal for the long term. How can I change the ownership of the FTP user via the DA control panel.
 
I meant the ownership of the files. You should be able to do that through the Files management. In order to change file ownership through ftp you'd have to allow ftp to run as root. That would be an incredible security risk which would allow anyone with an ftp login to do anything on your system including delete all system files.

Another option is to run PHP as a CGI (you can make that setting through custombuild), which would mean all files managed by PHP would be owned by the individual user.

Note that this may or may not work out well for you; it does add server load compared to running PHP as an apache module.

Jeff
 
I meant the ownership of the files. You should be able to do that through the Files management. In order to change file ownership through ftp you'd have to allow ftp to run as root. That would be an incredible security risk which would allow anyone with an ftp login to do anything on your system including delete all system files.

Another option is to run PHP as a CGI (you can make that setting through custombuild), which would mean all files managed by PHP would be owned by the individual user.

Note that this may or may not work out well for you; it does add server load compared to running PHP as an apache module.

Jeff

I don't see how any of that should be necessary. On my old server, when I created a new user in DA and logged into that user via FTP, I could upload and overwrite existing files on the account.

I don't know why it is not letting me anymore.
 
Who owned those files on your old server?

Who owns them on your new server?

Jeff
 
What do you mean by owns? The server is mine and I have root access.

How do I check the extent of the permissions for the individual ftp users?
 
Who is the user who owns the file?

I'm guessing you don't know, and that you need a server administrator.

Frankly, and respectfully, I'm a bit scared to tell you more because I really worry that you don't have enough administration experience to not break something seriously.

Jeff
 
Back
Top