HELP! /var folder has been set to 777 -R !!!!

gabriele-plg

New member
Joined
Jul 10, 2009
Messages
1
Dear friends/collegues.. this is an emergency, and i really hope that someone will help me.

One of my co-workers set ( for error ) /var folder to 777 recursively. Now i'm in panic.

Can i recover permissions in some way?

HELP!

:eek:
 
You would have to do so manually. What OS do you use?

I would think you could do something as simple as:

Code:
find /var -type d -exec chmod 755 {} \;
find /var -type f -exec chmod 664 {} \;
 
Last edited:
@gabriele-plg:

The script at /usr/local/directadmin/scripts/set_permissions.sh may do quite a bit of the work for you.

Jeff
 
Can i recover permissions in some way?

I guess the suggested variants should help, but they won't recover the all locations and files within /var. I'd suppose writing or finding a script which would collect correct permissions from a clean and working server with the same OS and restore them on the affected one.
 
Back
Top