When doing updates on the server I notice from time to time some .cagefs files that are not updated and trow errors like these:
Removed file /var/cagefs/46/username/etc/profile.d/alt_mod_passenger.sh
Removed file /var/cagefs/46/username/etc/profile.d/alt_mod_passenger.sh-5.3.7-6.el6.cloudlinux
Updating user jomonaxa ...
Removed file /var/cagefs/96/username2/etc/profile<type 'exceptions.OSError'>: [Err code 13] Permission denied: '/home/username2/.cagefs'
<type 'exceptions.OSError'>: [Err code 13] Permission denied: '/home/username3/.cagefs'
When checking these accounts, they are removed in cPanel and does not exist.
But they exist on the servers home folder:
[email protected]:/home/username# ls -la
d--------- 5 root root 4.0K Dec 18 2018 ./
drwx--x--x. 957 root root 68K Nov 6 01:32 ../
drwxrwx--x 2 username username 4.0K Dec 4 2018 .cagefs/
drwxr-xr-x 2 username username 4.0K Dec 18 2018 .cl.selector/
drwxr-x--- 3 username nobody 4.0K Dec 3 2018 public_html/
Is there something you can do to fix these old accounts/folders? Is there a script or some notification that can be made so it's possible to cleanup these old accounts/folders?