Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] recovering pam.d directory
Date: Wed, 08 Aug 2012 14:26:13
Message-Id: 20120808162228.03894cce@khamul.example.com
In Reply to: [gentoo-user] recovering pam.d directory by Marcello Varisco
1 On Wed, 8 Aug 2012 13:24:17 +0000
2 Marcello Varisco <marcelo.varesini@×××××××.com> wrote:
3
4 >
5 > Hi all,
6 >
7 > By incident I removed the pam.d directory containing all pam modules
8 > from command line. Is there a way to recover the removed directory?
9 > any help is appreciated since I can't login to my computer without
10 > live cd anymore.
11
12
13 Unless you have some amazing recovery tools to had (most people don't)
14 you can't easily recover those files.
15
16 pam.d isn't put there by a single package, everything that uses pam is
17 liable to write it's own custom file there. You can regain your ability
18 to log in by remerging these packages:
19
20 sys-apps/shadow
21 sys-auth/pambase
22
23 To do that, you will need to boot off a livecd and chroot. Then a
24 reboot should see you fine. Then you could rememrge everything that has
25 pam in USE and hope this is enough.
26
27 Or, you could restore from backups. You *do* have backups of /etc,
28 right?
29
30
31
32
33 --
34 Alan McKinnon
35 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] recovering pam.d directory Bryan Gardiner <bog@××××××.net>