1

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

magor
  • 3,752
  • 2
  • 13
  • 28

2 Answers2

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
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.