From 3aca722a0b256438773480fffc95176cc524a22f Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 26 Aug 2005 21:29:58 +0000 Subject: [PATCH] Added notes --- unix/mbpasswd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/mbpasswd.c b/unix/mbpasswd.c index d5c5d340..4f39c9c2 100644 --- a/unix/mbpasswd.c +++ b/unix/mbpasswd.c @@ -868,6 +868,10 @@ int main(int argc, char *argv[]) // Gewone stervelingen mogen dit niet kunnen starten. // Dit programma is een groot security gat. +// On Linux: use getppid to get the parent pid. +// cat /proc//cmdline gives name of parent. +// check parent name: mbsebbs | mbnewusr | mbsetup + if (argc != 4) { fprintf(stderr, "\nmbpasswd commandline:\n\n"); fprintf(stderr, "mbpasswd [-opt] [username] [newpassword]\n");