1. Startseite
  2. FTP
  3. FTP displays login directory as root

FTP displays login directory as root

Übersicht

Logging into the FTP server with a client will present the home directory, or custom directory, as the root directory. The user logged in is unable to move up the directory to its parent directory or any other directory outside the initial login directory.

Ursache

Defective FTP Client

Certain clients, such as Windows Explorer, improperly translate the initial directory as root. Consider the following FTP exchange:

Response: 230 Login successful.
Command: pwd
Response: 257 "/home/mylogin"
Command: TYPE A
Response: 200 Switching to ASCII mode.

The FTP client should present the initial directory as /home/mylogin. For clients that improperly implement FTP protocol, it will be represented as /; consequently, the FTP client cannot move up a directory or elsewhere, e.g. to /home oder /var/www/html.

Solution: Use a different FTP-Client or upgrade your current FTP client.

Jailed User

Secondary users may be jailed within the Bedienfeld unter Benutzer Manage Users > select userFTP > Jail. Upon login, the user will only be able to access directories and files within that specified directory. No other resources may be accessed.

Solution: Disable jail access to restore access to the rest of the filesystem.

 

Aktualisiert am März 7, 2021

Verwandte Artikel