LXC Root Password Setup

Hello everyone.

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.

minimal_base pattern is truly minimal and does not even include PAM stack, so no surprise chpasswd fails.

Also, since version 15.3 Leap needs more repositories than shown in the document you mentioned. Most updates come via SLE channel.

Package repositories - openSUSE Wiki

1 Like

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.

Well, you can try base pattern. That is what minimal_base in Leap 42.3 (where example comes from) did anyway.

1 Like

At one! Thank you very much. I’ll reply later to confirm whether it worked.

It worked. Thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.