L
L
Lofan2016-08-27 02:00:30
linux
Lofan, 2016-08-27 02:00:30

Is it safe to keep all files on a server with CHMOD 777?

Hello, I accidentally made a mistake when editing permissions and gave all files permissions 777, the owner of root.
How safe is it to leave it like that? What will be the consequences? And how can I fix everything without losing data?
Used by Debian, apache, php, mysql and other modules to maintain the project.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2016-08-27
@Lofan

If everything was installed via apt, then you can try the following command:
find /var/cache/apt/archives -name '*.deb' -print0 | sudo xargs -0 dpkg -Gi This will
reinstall the latest packages from the apt cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question