System user cannot see httpdocs via FTP

Created:

2017-01-17 13:26:12 UTC

Modified:

2017-08-08 13:12:01 UTC

1

Was this article helpful?


Have more questions?

Submit a request

System user cannot see httpdocs via FTP

Symptoms

FTP users created for accessing certain domains can access another customer's domain and other directories on the server. They also have access to the root directory.
FTP users should be able to view only their own domain's directory.

Cause

The issue may occur in the following cases:
  • unsupported FTP server program installed.
  • the ProFTPd configuration file has been manually edited (the `DefaultRoot directive` value has been changed).

Resolution

To allow users to access only their home directories, add the "DefaultRoot ~" line at the end of the FTP server's configuration file (usually /etc/proftpd.conf):
# echo "DefaultRoot ~" >> /etc/proftpd.conf
Have more questions? Submit a request
Please sign in to leave a comment.