Hi Misc'ers,

I did something stupid on my 4.0 server and lost the contents of /bin. I restored by
booting from the install-cd, mounting /, /usr, and /var, and running

   cd /root-mount; pax -rz -f /cd/4.0/i386/base40.tgz

(please don't ask what the stupid thing was).

I saved my /etc, /var/db, /var/www, /var/cron beforehand, so these were not affected.

The pax-connaisseurs among you will immediately notice that I forgot to use "-p e" to preserve all permissions. I went through manually and reset setuid/setguid bits for all
relevant files, using a 3.9 system as my guide.

My question is, does base40.tgz contain the permissions/ownership that the files should
have after installation?
Is it appropriate to write a script which uses the permissions and
owner/group from base40.tgz to restore the same for all existing files in the filesystem? Or do file permissions/ownership somehow get modified during the installation?

thanks,

Rob Urban

Reply via email to