• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Strange folders in FTP?

omexlu

Regular Pleskian
Hi @IgorG and co,

I want to ask why i have these other folders as asual in the FTP account?
That behavour is little strange (new server), normaly there are onlt logs, httpdocs and error_docs:

I use nginx only, there has nothing been changed on configs and chroot is turned off, this behavour is only on few domains, why? Nether changed something on skels.

Bildschirmfoto vom 2017-02-28 20-54-56.png
 
Last edited:
The subscription has SSH enabled, either a standard shell or the chrooted shell. To operate the shell including some basic shell commands additional directories liek bin, lib, lib64 etc. are needed. This is correct if a subscription grants shell access permissions (SSH access). Nothing to worry about.
 
The subscription has SSH enabled, either a standard shell or the chrooted shell. To operate the shell including some basic shell commands additional directories liek bin, lib, lib64 etc. are needed. This is correct if a subscription grants shell access permissions (SSH access). Nothing to worry about.

Thanks for you answer, but it is not activated for that subscription nether on create?
2.png
 
I cannot reproduce this behavior. Maybe it is an illusion. Your first screenshot does not show the location to that the FTP user is logged in. What path does it show and does your FTP client screenshot show the current directories? Sometimes software like Filezilla has cached a previous state and you need to "update"/"reload" the directory to show the real folder content.

Have to tried, too, to toggle between chrooted bash and forbidden?
 
I cannot reproduce this behavior. Maybe it is an illusion. Your first screenshot does not show the location to that the FTP user is logged in. What path does it show and does your FTP client screenshot show the current directories? Sometimes software like Filezilla has cached a previous state and you need to "update"/"reload" the directory to show the real folder content.

Have to tried, too, to toggle between chrooted bash and forbidden?

Yes it show this folders even in FTP, i have tried to toogle chrooted bash and forbidden, but still there.

It is very strange because it is not on all subscriptions.
 
Do the folders have custom content or do they not belong to root or do they have permissions that are non-standard?

Typical setup (# ls -la):
Code:
drwx--x--- 17 tester psaserv  4096 Feb 28 23:01 .
drwxr-xr-x 10 root   root    20480 Feb 14 09:58 ..
lrwxrwxrwx  2 root   root        7 Feb 21 03:16 bin -> usr/bin
drwxr-xr-x  2 root   root     4096 Feb 28 23:01 dev
drwxr-xr-x  2 tester psacln   4096 Nov 26 13:43 error_docs
drwxr-xr-x  2 root   root     4096 Feb 28 23:01 etc
drwxr-xr-x  2 tester psacln   4096 Jan 15 15:35 git
drwxr-x---  6 tester psaserv  4096 Feb  9 11:30 httpdocs
lrwxrwxrwx  2 root   root        7 Feb 21 03:16 lib -> usr/lib
lrwxrwxrwx  2 root   root        9 Feb 21 03:16 lib64 -> usr/lib64
drwx------  9 tester root     4096 Feb 28 03:42 logs
drwxr-----  3 tester psacln   4096 Jan 15 17:12 .pki
lrwxrwxrwx  2 root   root        8 Feb 21 03:16 sbin -> usr/sbin
drwxr-xr-x  2 tester psacln   4096 Jan 15 14:57 .ssh
drwxrwxrwt  2 root   root     4096 Feb 28 23:01 tmp
drwxr-xr-x  6 root   root     4096 Feb 28 23:01 usr
drwxr-xr-x  3 root   root     4096 Feb 28 23:01 var
 
Here are the result of this files:
Code:
drwx--x--- 13 ftp-konz psaserv 4096 Feb 28 21:40 .
drwxr-xr-x 13 root     root    4096 Feb 28 23:22 ..
drwxr-xr-x  2 root     root    4096 Feb 28 21:40 bin
drwxr-xr-x  2 root     root    4096 Feb 28 21:40 dev
drwxr-xr-x  2 ftp-konz psacln  4096 Feb 28 21:31 error_docs
drwxr-xr-x  2 root     root    4096 Feb 28 21:40 etc
drwxr-x--- 15 ftp-konz psaserv 4096 Feb 28 21:35 httpdocs
drwxr-xr-x  3 root     root    4096 Feb 28 21:40 lib
drwxr-xr-x  2 root     root    4096 Feb 28 21:40 lib64
drwx------  2 ftp-konz root    4096 Feb 28 21:31 logs
drwxrwxrwt  2 root     root    4096 Feb 28 21:40 tmp
drwxr-xr-x  3 root     root    4096 Feb 28 21:40 usr
drwxr-xr-x  3 root     root    4096 Feb 28 21:40 var
 
same problem here on latest plesk. SSH Access is disabled. the same Dirs like omexlu. What can i do ?
 
Hi,

These folders will only be created if chrooted has been selected. Normally, the folder / Short Cuts will be deleted if you disable chrooted. But this does not work anymore if something was changed in the chrooted environment / var / www / vhost / chroot. I've written a script that simply removes all folders and files that have the user / group root after saving. You can solve the proplem just as well by simply deleting the corresponding folders and files.

If you then enable and disable the chrooted shell, You See, the folders are created and deletet again.

This effect only occurs with the chrooted shell!
 
Back
Top