public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bryan Gardiner <bog@khumba.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] recovering pam.d directory
Date: Thu, 09 Aug 2012 00:51:54 -0700	[thread overview]
Message-ID: <1991874.rHQGTRSr9l@negai> (raw)
In-Reply-To: <20120808162228.03894cce@khamul.example.com>

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


      reply	other threads:[~2012-08-09  7:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=1991874.rHQGTRSr9l@negai \
    --to=bog@khumba.net \
    --cc=gentoo-user@lists.gentoo.org \
    /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