From mboxrd@z Thu Jan 1 00:00:00 1970 From: Saeed Jamali Subject: Re: pam module question Date: Fri, 11 Jan 2019 13:47:15 +0330 Message-ID: References: <87y37ro674.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007b8170057f2c0001" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghtsb-0007sX-CS for help-guix@gnu.org; Fri, 11 Jan 2019 05:17:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghtsX-00058o-LL for help-guix@gnu.org; Fri, 11 Jan 2019 05:17:32 -0500 Received: from mail-yw1-xc33.google.com ([2607:f8b0:4864:20::c33]:36026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghtsW-00057u-ET for help-guix@gnu.org; Fri, 11 Jan 2019 05:17:28 -0500 Received: by mail-yw1-xc33.google.com with SMTP id i73so5602144ywg.3 for ; Fri, 11 Jan 2019 02:17:27 -0800 (PST) In-Reply-To: <87y37ro674.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: help-guix@gnu.org --0000000000007b8170057f2c0001 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! On Fri, Jan 11, 2019, 13:41 Ricardo Wurmus > Hi Saeed, > > > I have developed a test pam module and I want to change login > configuration > > to use it during opening and closing sessions but I do not have any Id= ea > > how to change login configuration in /etc/pam.d/login (its a symlink to > > store) can you please help me, > > (gnu system pam) defines =E2=80=9Cunix-pam-service=E2=80=9D, which return= s a PAM service > for a given name. The module also contains the definition of > =E2=80=9Cbase-pam-services=E2=80=9D, which uses =E2=80=9Cunix-pam-service= =E2=80=9D and returns a list of > PAM services. > > This is how the PAM configuration is changed on Guix systems. You would > not modify /etc/pam.d directly, as it is generated on system > reconfiguration and checked out from /gnu/store. > > -- > Ricardo > > --0000000000007b8170057f2c0001 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you!=C2=A0

On Fri, Jan 11, 2019, 13:41 Ricardo Wurmus <rekado@elephly.net wrote:

Hi Saeed,

> I have developed a test pam module and I want to change login configur= ation
> to use it during opening and closing sessions=C2=A0 but I do not have = any Idea
> how to change login configuration in /etc/pam.d/login (its a symlink t= o
> store) can you please help me,

(gnu system pam) defines =E2=80=9Cunix-pam-service=E2=80=9D, which returns = a PAM service
for a given name.=C2=A0 The module also contains the definition of
=E2=80=9Cbase-pam-services=E2=80=9D, which uses =E2=80=9Cunix-pam-service= =E2=80=9D and returns a list of
PAM services.

This is how the PAM configuration is changed on Guix systems.=C2=A0 You wou= ld
not modify /etc/pam.d directly, as it is generated on system
reconfiguration and checked out from /gnu/store.

--
Ricardo

--0000000000007b8170057f2c0001--