{"id":8551,"date":"2014-12-22T23:55:44","date_gmt":"2014-12-22T23:55:44","guid":{"rendered":"https:\/\/wp.okra.host\/article\/ftp-displays-login-directory-as-root\/"},"modified":"2021-03-07T14:28:09","modified_gmt":"2021-03-07T13:28:09","slug":"ftp-displays-login-directory-as-root","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/ftp-displays-login-directory-as-root\/","title":{"rendered":"FTP displays login directory as root"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p>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.<\/p>\n<h2 id=\"cause\" >Ursache<\/h2>\n<h3 id=\"defective-ftp-client\" >Defective FTP Client<\/h3>\n<p>Certain clients, such as Windows Explorer, improperly translate the initial directory as root. Consider the following FTP exchange:<\/p>\n<pre>Response: 230 Login successful.\r\nCommand: pwd\r\nResponse: 257 \"\/home\/mylogin\"\r\nCommand: TYPE A\r\nResponse: 200 Switching to ASCII mode.<\/pre>\n<p>The FTP client should present the initial directory as <code>\/home\/mylogin<\/code>. For clients that improperly implement FTP protocol, it will be represented as <code>\/<\/code>; consequently, the FTP client cannot move up a directory or elsewhere, e.g. to\u00a0<code>\/home<\/code> oder\u00a0<code>\/var\/www\/html<\/code>.<\/p>\n<p><span style=\"color: #0000ff\"><strong>Solution:<\/strong><\/span> Use a different <a title=\"Accessing FTP server\" href=\"https:\/\/kb.okra.host\/de\/ftp\/accessing-ftp-server\/#recommended\">FTP-Client<\/a> or upgrade your current FTP client.<\/p>\n<h3 id=\"jailed-user\" >Jailed User<\/h3>\n<p>Secondary users may be jailed within the <a title=\"Anmeldung am Bedienfeld\" href=\"https:\/\/kb.okra.host\/de\/control-panel\/logging-into-the-control-panel\/\">Bedienfeld<\/a> unter <b>Benutzer\u00a0<\/b>&gt;\u00a0<strong>Manage Users<\/strong> &gt; <i>select user<\/i> &gt;\u00a0<strong>FTP &gt;\u00a0Jail<\/strong>.\u00a0Upon login, the user will only be able to access directories and files within that specified directory. No other resources may be accessed.<\/p>\n<p><span style=\"color: #0000ff\"><strong>Solution:<\/strong><\/span> Disable jail access to restore access to the rest of the filesystem.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Overview 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. Cause Defective FTP Client Certain&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[59],"ht-kb-tag":[],"class_list":["post-8551","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ftp"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8551"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8551\/revisions"}],"predecessor-version":[{"id":8552,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8551\/revisions\/8552"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8551"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8551"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}