Message ID | 1521377731-4322-1-git-send-email-erik.kapfer@ipfire.org |
---|---|
State | Accepted |
Commit | e779b6bc7aa470289bde0bf99aa7051dffc4384b |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.ipfire.org [IPv6:2001:470:7183:25::1]) by web02.i.ipfire.org (Postfix) with ESMTP id 4A01460134 for <patchwork@web02.i.ipfire.org>; Sun, 18 Mar 2018 13:56:49 +0100 (CET) X-Virus-Scanned: ClamAV at mail01.ipfire.org X-Spam-Flag: NO X-Spam-Score: -1.1 X-Spam-Level: X-Spam-Status: No, score=-1.1 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id B20F310BA4BD; Sun, 18 Mar 2018 12:56:47 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ipfire.org; s=201801; t=1521377808; x=1523969808; bh=6+627ZZ/4mRzS0Em2Jwj+bnbkWnKrXuNcen5Zr2+vAQ=; h=From:To:Subject:Date:Message-Id:Sender:From:To:Cc:Date: Content-Type:Message-ID:In-Reply-To:Subject:Reply-To:Sender; b=uF2nWmbG0YYYe+9Qp2sQk9HL1VYAezIsWbzktA9+zoqjkFMMahPwtsMb+x3x05jDh /7wd8Pfsoz3vNXupGVCsSqgNbon6w5PY5mVbgqaLguYmANhS6S8oCcIM9Obieq+xaX oDHODNhheZHXQmY2ThSa3slgTZaFCMFX76Cy7Xe710SWavp32t/XtMoYKWE4DOxsY3 P03BLg/l06ROftGTzKBKj8S4uP138n0H8Wh9A0IjC6FKNQWR7WQQF2FBkc+5aub0gn DTMPqQCWAnV8JaMtWULKO6i3KIme6fGg8pSSaC6fXX9F+u2y4lQWn38ssBbTvoe7sW wDXE0A/92BoVg== X-Virus-Scanned: ClamAV at mail01.ipfire.org Received: from localhost.localdomain (i59F52792.versanet.de [89.245.39.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id A50C4100804E; Sun, 18 Mar 2018 12:55:36 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ipfire.org; s=201801; t=1521377736; x=1523969736; bh=6+627ZZ/4mRzS0Em2Jwj+bnbkWnKrXuNcen5Zr2+vAQ=; h=From:To:Cc:Subject:Date:Message-Id:From:To:Cc:Date:Content-Type: Message-ID:In-Reply-To:Subject:Reply-To:Sender; b=bGLfN7Ic7QJfKMFgi59woUdjauDEHm8EAVQ9acfZoSQCN7u1X1ZJ08/kRSNXtS4/m imkBSYNqVQ8La9wB0WCQEr8qT44xu2tSjT9VkudFSCv94t5cZCoIr3YU7U7QEHG8rv IkKQKrcVc9wCJMkdPUWKPVlKT6xExG3ci4xWvAfUBpBqvkIRuvs3v4h+k/1aJKyuOV bOwdl6DhnWy+QWOYXbVKHyksSvRbDC56To0U1qhMAM+cmW8JTgpxitJKgXI4ZAq7fw EREbuBDFducfVxh36qxpZHW+Y/Z8aeIRy34YpltSUe3kcRb14vHA8IPQAC3kMZo9ip wdgywT9xJYQEQ== From: Erik Kapfer <erik.kapfer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] PAM: Delete old lib and symlinks Date: Sun, 18 Mar 2018 13:55:31 +0100 Message-Id: <1521377731-4322-1-git-send-email-erik.kapfer@ipfire.org> X-Mailer: git-send-email 2.7.4 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <https://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
PAM: Delete old lib and symlinks
|
|
Commit Message
Erik Kapfer
March 18, 2018, 11:55 p.m. UTC
Core 119 update delivers an updated PAM whereby the libdir has been changed from /lib to /usr/lib
but the old libraries and symlinks are still presant. Since the system searches /lib before
/usr/lib , the old libs and symlinks are used which ends up in an `LIBPAM_EXTENSION_1.1' not found.
Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org>
---
config/rootfiles/core/120/update.sh | 5 +++++
1 file changed, 5 insertions(+)
Comments
Hi, problem on Core 119 with a not working PAM has been reported in the forum which we could solve like described in here https://forum.ipfire.org/viewtopic.php?f=22&t=20480 Best, Erik Am Sonntag, den 18.03.2018, 13:55 +0100 schrieb Erik Kapfer: > Core 119 update delivers an updated PAM whereby the libdir has been > changed from /lib to /usr/lib > but the old libraries and symlinks are still presant. Since the > system searches /lib before > /usr/lib , the old libs and symlinks are used which ends up in an > `LIBPAM_EXTENSION_1.1' not found. > > Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org> > --- > config/rootfiles/core/120/update.sh | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/config/rootfiles/core/120/update.sh > b/config/rootfiles/core/120/update.sh > index 2f1bca0..02f2ad0 100644 > --- a/config/rootfiles/core/120/update.sh > +++ b/config/rootfiles/core/120/update.sh > @@ -34,6 +34,11 @@ done > # Remove forgotten PHP file > rm -f /etc/httpd/conf/conf.d/php5.conf > > +# Delete old PAM libs and symlinks if presant > +if ls /lib | grep -q 'libpam.*'; then > + rm -f /lib/libpam* > +fi > + > # Stop services > > # Extract files
Hello, we need to encourage people more to file tickets on BZ so that these things don't go unmissed. I barely read anything on the forum and even if I had seen something, it is really hard to find the post again where something has been reported. -Michael On Sun, 2018-03-18 at 14:00 +0100, ummeegge wrote: > Hi, > problem on Core 119 with a not working PAM has been reported in the forum > which we could solve like described in here > https://forum.ipfire.org/viewtopic.php?f=22&t=20480 > > Best, > > Erik > > Am Sonntag, den 18.03.2018, 13:55 +0100 schrieb Erik Kapfer: > > Core 119 update delivers an updated PAM whereby the libdir has been > > changed from /lib to /usr/lib > > but the old libraries and symlinks are still presant. Since the > > system searches /lib before > > /usr/lib , the old libs and symlinks are used which ends up in an > > `LIBPAM_EXTENSION_1.1' not found. > > > > Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org> > > --- > > config/rootfiles/core/120/update.sh | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/config/rootfiles/core/120/update.sh > > b/config/rootfiles/core/120/update.sh > > index 2f1bca0..02f2ad0 100644 > > --- a/config/rootfiles/core/120/update.sh > > +++ b/config/rootfiles/core/120/update.sh > > @@ -34,6 +34,11 @@ done > > # Remove forgotten PHP file > > rm -f /etc/httpd/conf/conf.d/php5.conf > > > > +# Delete old PAM libs and symlinks if presant > > +if ls /lib | grep -q 'libpam.*'; then > > + rm -f /lib/libpam* > > +fi > > + > > # Stop services > > > > # Extract files
Hi Michael, Am Sonntag, den 18.03.2018, 13:43 +0000 schrieb Michael Tremer: > Hello, > > we need to encourage people more to file tickets on BZ so that these > things don't go unmissed. important point but in that case problem has been seen, fixed, double checked and pushed. > > I barely read anything on the forum and even if I had seen something, > it is really hard to find the post again where something has been > reported. > > -Michael Best, Erik
diff --git a/config/rootfiles/core/120/update.sh b/config/rootfiles/core/120/update.sh index 2f1bca0..02f2ad0 100644 --- a/config/rootfiles/core/120/update.sh +++ b/config/rootfiles/core/120/update.sh @@ -34,6 +34,11 @@ done # Remove forgotten PHP file rm -f /etc/httpd/conf/conf.d/php5.conf +# Delete old PAM libs and symlinks if presant +if ls /lib | grep -q 'libpam.*'; then + rm -f /lib/libpam* +fi + # Stop services # Extract files