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
.d/alt_mod_passenger.sh
When checking these accounts, they are removed in cPanel and does not exist.
But they exist on the servers home folder:
root@server:/home/username# ls -la
total 88K
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 its possible to cleanup these old accounts/folders?
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
.d/alt_mod_passenger.sh
When checking these accounts, they are removed in cPanel and does not exist.
But they exist on the servers home folder:
root@server:/home/username# ls -la
total 88K
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 its possible to cleanup these old accounts/folders?
Comment