Help - Search - Members - Calendar
Full Version: Permission to FTP
The Planet Forums > Control Panels > Plesk
dcottuli
Hi all, thanks for going easy on me icon_smile.gif I have created a domain and given ftp access to the domain user. So far so good. He can log into his account and see all of his files however he can't change any of them - keeps getting a permission denied. I have two questions.

1) What's gone wrong in the Plesk setup that's not allowing the ftp user to access their site even though they have been created?

2) how can I give the user permission to upload files to their domain?
Obviously I can upload their site in root but what's the use of having ftp access for domain users if they can't upload. Any thoughts wouldbe greatly appreciated.
Squire
Did you upload the files originally as root? Or copy the files over from another location while ssh'd in by chance.

Sounds like a file ownership problem to me. Especially if you had transferred files for your client. If that's the problem the fix is simple. But I'm not sure from your question whether this is for a whole domain or for a web user.

SSH into the server.
Change to the directory of that domain/web user ( cd /home/httpd/vhosts/domain.com for the whole domain, cd/home/httpd/vhosts/domain/web_users for a web user)
Change the ownership of all files recursively. The following will do that for you...
For a whole domain:
chown -R ftpname:psacln httpdocs

For a web user:
chown -R web_user_ftpname:psacln webuser

** Where "ftpname" is the FTP Username you set up when creating the domain in Plesk. Or where "web_user_ftpname is the FTP Username and "webuser" is the Web User name you assigned in Plesk. **

That should give your client access to upload, move, chmod, delete, upload, etc, etc. It'll change the ownership of httpdocs or the web users home file, as well as every file in the tree down from there.

HTH

Squire
dcottuli
Thanks Squire - that's exactly what I did. The original files were uploaded for the client by me when I was logged in as root. Your explanantion was very easy to understand and follow - really appreciated it!
-SH-
Yes Squire, thank you so very much!
icon_wink.gif
Squire
Anytime. Glad to help out where I can. icon_biggrin.gif

Squire
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.