I am running openSUSE 15.6 on VirtualBox [on Fedora]. I wanted to set up a container in /home/username/vault. I followed the Doc’s guide (though I have changed the URLs to point to openSUSE Leap 15.6.)
Everything went smoothly until I tried to run echo "root:YOURPASSWD" | chpasswd -R /PATH/TO/ROOTFS as root, I got an error saying chpasswd: PAM: Critical error - immediate abort.
What is the cause for this error? How can I resolve it?
NOTE: I am running it on server mode – pure text-mode console, no graphics.
Got it.
I have copied the /etc/pam.d to the chroot, but yet, it still does not work, throwing a PAM: module is unknown error this time. I am not sure how does PAM work, and so I do not know how can I tweak the configuration file.