* [gentoo-user] recovering pam.d directory
@ 2012-08-08 13:24 Marcello Varisco
2012-08-08 14:22 ` Alan McKinnon
0 siblings, 1 reply; 3+ messages in thread
From: Marcello Varisco @ 2012-08-08 13:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
Hi all,
By incident I removed the pam.d directory containing all pam modules from command line. Is there a way to recover the removed directory? any help is appreciated since I can't login to my computer without live cd anymore.
Marcello
[-- Attachment #2: Type: text/html, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] recovering pam.d directory
2012-08-08 13:24 [gentoo-user] recovering pam.d directory Marcello Varisco
@ 2012-08-08 14:22 ` Alan McKinnon
2012-08-09 7:51 ` Bryan Gardiner
0 siblings, 1 reply; 3+ messages in thread
From: Alan McKinnon @ 2012-08-08 14:22 UTC (permalink / raw
To: gentoo-user
On Wed, 8 Aug 2012 13:24:17 +0000
Marcello Varisco <marcelo.varesini@hotmail.com> wrote:
>
> Hi all,
>
> By incident I removed the pam.d directory containing all pam modules
> from command line. Is there a way to recover the removed directory?
> any help is appreciated since I can't login to my computer without
> live cd anymore.
Unless you have some amazing recovery tools to had (most people don't)
you can't easily recover those files.
pam.d isn't put there by a single package, everything that uses pam is
liable to write it's own custom file there. You can regain your ability
to log in by remerging these packages:
sys-apps/shadow
sys-auth/pambase
To do that, you will need to boot off a livecd and chroot. Then a
reboot should see you fine. Then you could rememrge everything that has
pam in USE and hope this is enough.
Or, you could restore from backups. You *do* have backups of /etc,
right?
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] recovering pam.d directory
2012-08-08 14:22 ` Alan McKinnon
@ 2012-08-09 7:51 ` Bryan Gardiner
0 siblings, 0 replies; 3+ messages in thread
From: Bryan Gardiner @ 2012-08-09 7:51 UTC (permalink / raw
To: gentoo-user
On August 8, 2012 04:22:28 PM Alan McKinnon wrote:
> On Wed, 8 Aug 2012 13:24:17 +0000
>
> Marcello Varisco <marcelo.varesini@hotmail.com> wrote:
> > Hi all,
> >
> > By incident I removed the pam.d directory containing all pam modules
> > from command line. Is there a way to recover the removed directory?
> > any help is appreciated since I can't login to my computer without
> > live cd anymore.
>
> Unless you have some amazing recovery tools to had (most people don't)
> you can't easily recover those files.
>
> pam.d isn't put there by a single package, everything that uses pam is
> liable to write it's own custom file there. You can regain your ability
> to log in by remerging these packages:
>
> sys-apps/shadow
> sys-auth/pambase
>
> To do that, you will need to boot off a livecd and chroot. Then a
> reboot should see you fine. Then you could rememrge everything that has
> pam in USE and hope this is enough.
>
> Or, you could restore from backups. You *do* have backups of /etc,
> right?
Also, qcheck from portage-utils can list out all packages that are missing
files from /etc/pam.d, so you can know which packages need remerging. Run
"qcheck --all" and look for "AFK: /etc/pam.d/....." in the output.
HTH,
Bryan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-09 7:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-08 13:24 [gentoo-user] recovering pam.d directory Marcello Varisco
2012-08-08 14:22 ` Alan McKinnon
2012-08-09 7:51 ` Bryan Gardiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox