Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Chrooted directories are created in subscription directory on Plesk for Linux server even if SSH access for subscription is forbidden

 
chrootcroncron jobscrontabdatabase

Symptoms

  • On a Linux-based server that runs Plesk Obsidian, Chrooted directories exist in the subscription's directory: 

    # ls -la /var/www/vhosts/example.com/
    drwx--x--- 13 user psaserv 4096 Apr 24 10:02 .
    drwxr-xr-x 546 root root 20480 Apr 24 10:00 ..
    drwxr-xr-x 2 root root 4096 Apr 24 10:02 bin
    drwxr-xr-x 2 root root 4096 Apr 24 10:02 dev
    drwxr-xr-x 2 user psacln 4096 Apr 24 10:00 error_docs
    drwxr-xr-x 2 root root 4096 Apr 24 10:02 etc
    drwxr-x--- 5 user psaserv 4096 Apr 24 10:00 httpdocs
    drwxr-xr-x 3 root root 4096 Apr 24 10:02 lib
    drwxr-xr-x 2 root root 4096 Apr 24 10:02 lib64
    drwx------ 2 user root 4096 Apr 24 10:00 logs
    drwxrwxrwt 2 root root 4096 Apr 24 10:02 tmp
    drwxr-xr-x 3 root root 4096 Apr 24 10:02 usr
    drwxr-xr-x 3 root root 4096 Apr 24 10:02 var

  • In Plesk > Domains > example.com > Hosting & DNS > Hosting the SSH access type is set to Forbidden:

  • In Plesk > Tools & Settings > Scheduled Tasks > Settings, the Crontab shell option is set to /bin/bash (chrooted):

  • In the Plesk configuration database (psa ), in the table misc, the parameter crontab_secure_shell_compatibility_mode is not enabled:

    # plesk db
    MariaDB [psa]> select param, val from misc where param = 'crontab_secure_shell_compatibility_mode';
    Empty set (0.00 sec)

Cause

These folders are created upon multiple conditions:

  • Chrooted shell is enabled for the domain (in this case, the folders are removed, if it is disabled)

  • Command which uses OS binaries (like wget, curl, echo, cat, etc..) is used in the Scheduled Tasks (in this case, the folders are created and will remain as is)

Resolution

  1. Log into Plesk

  2. Go to Tools & Settings > Scheduled Tasks (Cron jobs) > Settings.

  3. Set the option Crontab shell as /bin/sh and click OK or Apply to save the changes.

Click on a section to expand

Alternatively, remove the chrooted directories for the domain manually

  1. Connect to the server via SSH

  2. Delete the chrooted directories for the Subscription example.com by executing the following command:

    # plesk sbin chrootmng --remove --target=/var/www/vhosts/example.com --source=/var/www/vhosts/chroot

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Cron Jobs: All You Need To Know

Read More »

Plesk with Centralized Database and Network File System

Read More »

6 Things to Keep in Mind When Choosing an Ideal Server for Big Data Requirements

Read More »
Knowledge Base

On Plesk for Linux server, curl command in chrooted shell or in scheduled task fails: curl: (77) error setting certificate verify locations

Read More »

Different operations on Plesk for Linux server fail: /usr/sbin/usermod execution failed: usermod: user is currently used by process

Read More »

Unable to start BIND DNS server in Plesk for Linux: “zone NS has no address records (A or AAAA)” or “zone has no NS records”

Read More »

SSH terminal button is missing from the Domain card Dashboard section

Read More »

Hosting Wiki

  • Django
  • Cross Site Request Forgery (CSRF)
  • Cross-Origin Resource Sharing (CORS)
  • Server Redundancy
  • Postfix
  • Linux Containers
  • Google Cloud CDN
  • PostgreSQL
  • DDoS
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • MongoDB
  • Domain
  • Hosting Control Panel
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • Static DNS
  • DNS Server
  • DNS Forwarding
  • Reverse DNS
  • SSH
  • Cron Jobs
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family