Can not delete, Edit or change permission of /home/userdata

dannkamas

Registered
Feb 1, 2023
4
0
1
Kenya
cPanel Access Level
Root Administrator
Hi
I had issues with my vps server, I think someone tried to hack into it and unfortunately he did this with my main reseller account that rans the other accounts on the server.

I managed to login and changed the password immediately however he had managed to change the account username and domain of that specific account.
I am trying to delete completely that account and recreate a new one using the same username so i can restore my backup but I am getting operation failed error when i attempt to delete/ rename or even change the permission which is currently at 0000 on /home/userdata.

When I try to terminate through list accounts or modify accounts in whm i get user does not exist error.

Please anyone who can advice me on how to go about it ?
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
576
266
138
IN
cPanel Access Level
Root Administrator
Can you please share the exact error you get, screenshot would be much helpful to assist you further.
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator
You have to login to the server as root via SSH and set the correct permissions on /home/username (chmod 0644 /home/username). If thats fails with operation not permittion error that most probably immutable flag is set there which you can remove with "chattr -i /home/username" command then you will be able to fix the permissions and remove the account.
 
  • Like
Reactions: cPRex