From: Henning Schild <henning.schild@siemens.com>
To: <isar-users@googlegroups.com>
Subject: password setting via install hook is a security issue
Date: Wed, 6 Feb 2019 13:34:15 +0100 [thread overview]
Message-ID: <20190206133415.1fb1a5f4@md1za8fc.ad001.siemens.net> (raw)
Hi,
just discussed the whole password setting story with Claudius. We
discussed whether the password setting package should be a transient
package.
So one that gets installed last and gets removed again. These packages
should not have any content and just carry scriptlets to replace the
distro configure-scripts, making these layer-able.
Turns out that dpkg keeps all post/pre-inst/rm scripts for currently
installed packages. And it does so in a world-readable form. So if your
target has multiple users even unprivileged users can find the rootpw
with a simple "grep chpass /var/lib/dpkg/info/*".
That is why Claudius will turn his passwd setting package into a
transient one. In addition we will need a changelog entry telling all
users to drop the "chpasswd" in "postinst" pattern for
regular/non-transient packages.
Henning
reply other threads:[~2019-02-06 12:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190206133415.1fb1a5f4@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox