Help needed

hi experts,
i am a beginner in AIX..recently got a chance to work with unix team.
we have an interface server through which we connect to production servers..
there were lot of files inside root (/) of that interface server owned by different ppl...by mistake i changed the ownership and group of all files to root...i dont remember the owners and groups of those files...is there a way to get it back as earlier ???

---------- Post updated at 07:33 PM ---------- Previous update was at 07:32 PM ----------

that interface server is Linux

Hi.

Assuming by root (/) you mean everything in and under /:

Most likely your best option: A restore.

If you are very lucky and have another server that looks just like the one you changed, thread #9 here might help:

I need script Copy permissions of files and folders from one server to another

Except, the command would be more like:

find . -type f -printf "%h/%f %u %g\n" >> /root/do-restore.sh
1 Like