I’ve recently set up a brand new server running HestiaCP v1.9.3 on Debian 12. After a few days of basic configuration, I noticed that the /srv/jail directory is taking up around 27 GB of disk space.
Here’s the situation:
No Hestia users have a jail shell or SSH access enabled.
All users are set to /sbin/nologin.
The server is used solely for website hosting through the panel (no SSH or SFTP access for users).
The /srv/jail folder contains a directory for each user with subfolders like conf/mail, conf/web, conf/dns, etc.
I tried removing the folder with sudo rm -rf, but got Operation not permitted errors on some subfolders.
My questions:
Is it normal for /srv/jail to be populated automatically, even if no jailed users exist?
What exactly is the purpose of this jail directory in this context?
Can I safely delete /srv/jail without breaking anything in Hestia?
Is there a recommended procedure to fully remove it (handling immutable files, permissions, etc.)?
Thanks in advance for your help and clarification!
That’s helpful — however, I’m seeing that the /srv/jail folder is actually using ~27 GB of real disk space (confirmed via du -sh), so it doesn’t seem to be just symbolic links.
I understand it might be related to SSH jail for additional FTP users, but in my case:
No users have shell access enabled (all set to /sbin/nologin)
No users were manually set to use a jail shell
The server is brand new (just a few days old)
I haven’t created any additional FTP users so far
So I’m wondering if the content inside /srv/jail is really needed, or if it was pre-generated by Hestia automatically.
Do you confirm it’s safe to delete /srv/jail if no jailed or FTP chrooted users are currently in use?