Restoring default permissions

olalonde

Registered
Jan 2, 2010
1
0
51
I have accidently executed the following command as root:

chmod 664 .* -R

which chmods the parent directories (..) as well.

Is there any way to recover my old permissions considering I don't have a fresh backup? I didn't have any custom permission so some generic script should be OK.
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
Under which directory did you executed the chmod command? If you have changed the permissions server wide, it's better you re-install your server as there is no specific script to change server wide permissions.

If you have changed the permissions of all the accounts under /home, we can set the default permissions using a script.