Tobias Frost, 2014-10-01 08:39+0200:
For the other options I selected the defaults; NOTE, that this time debconf did NOT ask for the password, but AFAIK this is OK as debconf would not repeat questions if already asked).
Well, not exactly, With dpkg-reconfigure, it would ask everything, except the dokuwiki config script skips the user-related questions if there is already a user file.
Now, I think I found what causes this problem: when installing a package, the config script can be run twice, during preconfiguration and during postinst. During that second run, all questions have already be asked and are thus skipped, including the password question, which I configured to set the default password if the question is skipped!
Obviously, that way of detecting the the user did not have the possibility to set a password is incorrect. I think I will simply add the extra security I thought of initially: set the default password if the question was skipped *and* the “chosen” (or not) password is empty. This way, if the question was skipped but the user already chose a password, it will not force the default one.
That was tricky! Librement. -- ,--. : /` ) ن Tanguy Ortolo <xmpp:tan...@ortolo.eu> | `-' Debian Developer <irc://irc.oftc.net/Tanguy> \_
signature.asc
Description: Digital signature