I was resetting permissions on /var/www and screwed it up!
Now I get frequent problems connecting to mysql, using the package manager because /var has fairly open permissions.
Anyone know if /var is a fairly blanket
sudo chmod -R 700 *
Help!
I was resetting permissions on /var/www and screwed it up!
Now I get frequent problems connecting to mysql, using the package manager because /var has fairly open permissions.
Anyone know if /var is a fairly blanket
sudo chmod -R 700 *
Help!
Most directories should be 755 and owned by root. Sadly not everything should be that. If you do a recursive permission change, you will do significantly more damage. On my machine, I have:
There will be many more files with different permissions. Hopefully this gives you some idea of what to fix.
You say package manager, I'm guessing you're running Ubuntu? Unfortunately, if you're running an apt-based distro, then you'll have to do it manually like David states.
If you're running an RPM-based distro, you can do this:
That's one of the few advantages RPM has over deb/apt.