mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Tamino Bauknecht <dev@tb6.eu>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper
Date: Thu, 25 May 2023 17:48:58 +0200	[thread overview]
Message-ID: <65ac4216-04f6-c496-a292-ab0703425aaa@tb6.eu> (raw)
In-Reply-To: <ZG3ZKYSOLb0H/36q@lenoch>

Hi Ladis,

independent of my use case, I considered this to be a bug because the
library pam_mkhomedir.so is installed on the target but doesn't work
without this addition.

The use case is that when providing an LDAP login via PAM to SSH (for
target maintenance with a central credential management), it can be
convenient to have auto-created home directories for new users. Although
I guess this is not quite the standard use of ptxdist, I think that it
can be misleading to have non-working libraries installed on the device
(especially because a misconfiguration in PAM can lead to trouble with
accessing the target). Since the binary is quite small (~20kB), the 
inclusion
might be worth it even though it won't be required by the majority of users.

On 5/24/23 11:30, Ladislav Michl wrote:
> Hi Tamino,
>
> On Fri, May 19, 2023 at 03:47:10PM +0200, Tamino Bauknecht wrote:
>> 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.
> could you provide more informations about your use case? As PTXdist
> is not normally used to build "user friendly" distribution, there
> are no users logging in...
>
> 	ladis
>
>> 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-25 15:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-19 13:47 Tamino Bauknecht
2023-05-24  9:30 ` Ladislav Michl
2023-05-25 15:48   ` Tamino Bauknecht [this message]
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=65ac4216-04f6-c496-a292-ab0703425aaa@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