Accidentally ran find / -type f -print0 | xargs -0 chmod 0644

Sujoy Dhar

Well-Known Member
Jul 24, 2016
64
9
8
India
cPanel Access Level
Root Administrator
Twitter
I have run this command find / -type f -print0 | xargs -0 chmod 0644 accidentally instead of find /home/user/public_html -type f -print0 | xargs -0 chmod 0644

My server is not working , though I got to know something wrong happening , I have cancelled the task.

Now I can access whm and the terminal but rests websites are getting 500 error.

Any way to revert the file permission?

Fast response is kind appreciated.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,261
313
Houston
There isn't something that will just revert the file permissions. Your best bet would be to enlist the assistance of a qualified system administrator. If you don't have one you might find one here: System Administration Services.

Ultimately it might be easiest to rectify this by migrating to a new server, especially considering you have no way to know what you've changed and how many files need their permissions fixed.
 
Thread starter Similar threads Forum Replies Date
R Security 12
R Security 6
B Security 5
R Security 3
D Security 2