|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: "rm" finally took me down...
From: Wietse Venema (wietse
porcupine.org)
Date: Thu Dec 04 2003 - 19:36:58 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Glen Lee Edwards:
> ok, I finally did it. Too much to do and no time to do it in, I rm'd
> everything in /etc/postfix - all the configuration files, everything.
> Does postfix have a command I can enter that will tell the running
> daemon to spit out the current configuration so I can recover it -
> main.cf, master.cf, virtual, etc?
>
> Glen > /dev/null
The coroner's toolkit comes to mind; use unrm(1) and strings(1)
and you will find everything that hasn't been overwritten in the
mean time. This works for text files.
Getting the information from running processes is trickier.
On UNIX systems one dumps core (with gcore) and uses a debugger.
This will give the main.cf parameters that master and qmgr actually
use, but you will be able to find out the exact value for each.
The content of the complete main.cf is scattered across memory as
short strings with either a parameter name or a parameter value.
This can be recovered from a core dump with the strings command.
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]