Unable to connect over FTPS: unable to set DefaultRoot directory

Created:

2016-12-18 06:42:44 UTC

Modified:

2017-08-18 22:15:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to connect over FTPS: unable to set DefaultRoot directory

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. It is not possible to connect over FTPS:

    Response:   530 Login incorrect.
    Error: Critical error: Could not connect to server
  2. The following can be found in /var/log/messages :

    proftpd[8632]: processing configuration directory '/etc/proftpd.d'
    proftpd[8632]: 127.0.0.1 (203.0.113.2[203.0.113.2]) - FTP session opened.
    proftpd[8632]: 127.0.0.1 (203.0.113.2[203.0.113.2]) - notice: unable to use DefaultRoot '~/' [resolved to '/home/www/vhosts/example.com/']: No such file or directory
    proftpd[8632]: 127.0.0.1 (203.0.113.2[203.0.113.2]) - chroot to '~/' failed for user 'user': No such file or directory
    proftpd[8632]: 127.0.0.1 (203.0.113.2[203.0.113.2]) - error: unable to set DefaultRoot directory
    proftpd[8632]: 127.0.0.1 (203.0.113.2[203.0.113.2]) - FTP session closed.
  3. Permissions on /etc/passwd are not as follows:

    # ls -la /etc/passwd
    -rw-r--r-- 1 root root 2359 Nov 23 23:06 /etc/passwd

    # stat /etc/passwd
    File: `/etc/passwd'
    Size: 2359 Blocks: 8 IO Block: 4096 regular file
    Device: 5710b6d1h/1460713169d Inode: 15820 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)

Cause

Incorrect permissions on /etc/passwd file.

Resolution

Set the correct permissions on /etc/passwd :

# chmod 0644 /etc/passwd
Have more questions? Submit a request
Please sign in to leave a comment.