I was messing around with the authentications on a hobby server, and I removed PAM after viewing
this thread on the topic.
[Edited to add hyperlink.] I did this by adding "-pam" to make.conf and running an @world update. Upon reboot, I could not log in at the prompt

, but I was able to chroot into the system. I tried some things that I neglected in the thread, like running revdep-rebuild and re-emerging sys-apps/shadow and sys-process/audit. Still no luck at the log-in prompt. I then replaced the "pam" use flag and updated @world to re-install PAM and dependencies. Still no luck logging in. After all of my experiments, the situation is that OpenRC runs into a permission problem early in the boot process.
The error message is as follows:
Code: Select all
OpenRC 0.42.1 is starting up Gentoo Linux (i686)
* /proc is already mounted
* /run/openrc: creating directory
* /run/lock: creating directory
* /run/lock: correcting owner
* Caching service dependencies ...
sh: /lib/rc/sh/gendepends.sh: /bin/sh: bad interpreter: Permission denied [ok]
INIT: Entering runlevel: 3
The machine then moves quickly to a non-functional log-in screen. Before I wipe the system and start over, I would like to know if there is a way to restore the boot process so I can log in again, with or without PAM. Thanks in advance for any advice.
