Answer the question
In order to leave comments, you need to log in
How to return the rights to files?
I entered the command sudo chmod -r 774 var/www/
The numbers in the command can be 744, I don’t remember exactly.
Icons began to disappear, I realized that I messed up but it was too late. I closed the terminal and rebooted the computer and here is the text
Apparently blocked access rights.
What command to restore rights without logging in? If there are any options for solving this problem without reinstalling the OS?
On ubuntu only a month, please do not judge strictly.
Answer the question
In order to leave comments, you need to log in
Apparently it was "/var".
Unfortunately, in Ubuntu/Debian, unlike RPM-based distro (rpm --setperms), there is no easy way to fix this.
Here https://hyperlogos.org/page/Restoring-Permissions-... comrade found something like a workaround.
Even if you set a complete ban on the /var/www/ directory, the OS itself should not stop loading from this. Didn't do anything else.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question