After executing $ sudo chmod 660 /
, I can't login with any of the users besides root. How can I restore the permissions ?
Asked
Active
Viewed 1,580 times
1

magor
- 3,752
- 2
- 13
- 28

Ярина Фостяк
- 11
2 Answers
5
As root
chmod 755 /
restores that to the default permissions. If you'd done
chmod -R 664 /
then you'd have to reinstall.

Thomas Dickey
- 76,765
-
even if you did
chmod -R 664 /
you could avoid the full re-installation,e.g. on rpm-based system you could verify the file modes withrpm -V
– Serge Jun 01 '16 at 21:41 -
1
0
Have you tried chkperm utility?
https://gitlab.com/chkperm/chkperm/wikis/home
I think you can use it on fresh linux installation to get the correct permission, then boot your server into recovery mode and use chkperm to fix these permissions to the original state.

Kristian Kirilov
- 106
chmod 750 /
while being logged in asroot
? – magor Jun 01 '16 at 19:54