• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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