mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Tamino Bauknecht <dev@tb6.eu>
To: ptxdist@pengutronix.de
Cc: Tamino Bauknecht <dev@tb6.eu>
Subject: [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper
Date: Fri, 19 May 2023 15:47:10 +0200	[thread overview]
Message-ID: <20230519134710.9618-1-dev@tb6.eu> (raw)

This binary is required by the PAM library pam_mkhomedir.so which is
installed to '/usr/lib/security'. If used in a PAM configuration, a
home directory will be automatically created when a user logs in.
Without this helper, the library will fail with an error.

Signed-off-by: Tamino Bauknecht <dev@tb6.eu>
---
 rules/pam.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/pam.make b/rules/pam.make
index 6e97e3320..df86c8da0 100644
--- a/rules/pam.make
+++ b/rules/pam.make
@@ -84,6 +84,8 @@ $(STATEDIR)/pam.targetinstall:
 	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/pam_env.conf)
 	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/time.conf)
 
+	@$(call install_alternative, pam, 0, 0, 0755, /sbin/mkhomedir_helper)
+
 	@$(call install_finish, pam)
 
 	@$(call touch)
-- 
2.40.1




             reply	other threads:[~2023-05-23  9:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-19 13:47 Tamino Bauknecht [this message]
2023-05-24  9:30 ` Ladislav Michl
2023-05-25 15:48   ` Tamino Bauknecht
2023-06-02  7:17 ` [ptxdist] [APPLIED] " Michael Olbrich

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=20230519134710.9618-1-dev@tb6.eu \
    --to=dev@tb6.eu \
    --cc=ptxdist@pengutronix.de \
    /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