I just deleted the FTP Account of the tosy user and than also removed the /srv/jail/tosy_root directory.
So I guess, the user ideec also had an FTP user. But that FTP user was not removed when I run v-change-domain-owner, or when I deleted the user ideec from HestiaCP UI. That would explain the existence of the directory /srv/jail/ideec_root (of the now deleted user ideec) which points to the same directory as /srv/jail/tosy.
I suppose this means that the command v-change-domain-owner needs to be corrected in order to check for FTP user accounts and remove them from /srv/jail.
Now… As far as I remember, the directories in /srv/jailare symlinks (or something)bind mounts (thanks @sahsanu). How do I remove the obsolete ones (without deleting the actual data of course )?
UNIT LOAD ACTIVE SUB DESCRIPTION
-.mount loaded active mounted Root Mount
boot-efi.mount loaded active mounted /boot/efi
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
proc-sys-fs-binfmt_misc.mount loaded active mounted Arbitrary Executable File Formats File System
run-user-0.mount loaded active mounted /run/user/0
srv-jail-fumo-home-fumo.mount loaded active mounted Mount fumo's home directory to the jail chroot
srv-jail-[redacted]-home-[redacted].mount loaded active mounted Mount [redacted]'s home directory to the jail chroot
srv-jail-ideeb_fm-home-ideeb_fm.mount loaded active mounted Mount ideeb_fm's home directory to the jail chroot
srv-jail-ideec_root-home-ideec_root.mount loaded active mounted Mount ideec_root's home directory to the jail chroot
srv-jail-tosy-home-tosy.mount loaded active mounted Mount tosy's home directory to the jail chroot
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded active mounted Kernel Configuration File System
sys-kernel-debug-tracing.mount loaded active mounted /sys/kernel/debug/tracing
sys-kernel-debug.mount loaded active mounted Kernel Debug File System
sys-kernel-tracing.mount loaded active mounted Kernel Trace File System
Legend: LOAD → Reflects whether the unit definition was properly loaded.
ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
SUB → The low-level unit activation state, values depend on unit type.
16 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Please note that the users ideec and ideeb do not exist any more.
Now the command systemctl list-units --type=mount is showing:
UNIT LOAD ACTIVE SUB DESCRIPTION
-.mount loaded active mounted Root Mount
boot-efi.mount loaded active mounted /boot/efi
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
proc-sys-fs-binfmt_misc.mount loaded active mounted Arbitrary Executable File Formats File System
run-user-0.mount loaded active mounted /run/user/0
srv-jail-fumo-home-fumo.mount loaded active mounted Mount fumo's home directory to the jail chroot
srv-jail-[redacted]-home-[redacted].mount loaded active mounted Mount hestiamaster's home directory to the jail chroot
srv-jail-tosy-home-tosy.mount loaded active mounted Mount tosy's home directory to the jail chroot
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded active mounted Kernel Configuration File System
sys-kernel-debug.mount loaded active mounted Kernel Debug File System
sys-kernel-tracing.mount loaded active mounted Kernel Trace File System
Legend: LOAD → Reflects whether the unit definition was properly loaded.
ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
SUB → The low-level unit activation state, values depend on unit type.
13 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
But the directories /srv/jail/ideec_root/ and /srv/jail/ideeb_fm/ still exist