Re: [gentoo-user] recovering pam.d directory
On August 8, 2012 04:22:28 PM Alan McKinnon wrote: On Wed, 8 Aug 2012 13:24:17 + Marcello Varisco marcelo.vares...@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
[gentoo-user] recovering pam.d directory
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
Re: [gentoo-user] recovering pam.d directory
On Wed, 8 Aug 2012 13:24:17 + Marcello Varisco marcelo.vares...@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.mckin...@gmail.com