Inconsistent system state during user/web update?

Discussion in 'Installation/Configuration' started by jmroth, Sep 3, 2007.

  1. jmroth

    jmroth ISPConfig Developer ISPConfig Developer

    Some time ago I had a very strange mail that I guess was sent from crontab and/or sudo while I was recreating the config for all users in ISPconfig (I had set all users' status to 'u')

    To: [email protected]
    Subject: *** SECURITY information for myhost ***
    myhost : Aug 30 22:35:06 : 0 : uid 0 does not exist in the passwd file! ; TTY=unknown ; PWD=unknown ; USER=root ; COMMAND=mycommand

    (my* substituted for everything that is not necessary to know ;))

    Could it be that while the ISPconfig update process is running, there is intermittently no passwd file or so? :eek:
    If so, I guess one should fix that by writing to a temp file and replacing the actual passwd file in one "atomic" step at the end...
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The passwd file is always there, ISPConfig is not removing it. When content is written to a file, the application gets a exclusive log. I guess that your monitoring application was just not ableto get access to the file while the user information was updated.

Share This Page