Error creating lxc container on -current
I get this error when trying to create a Slackware64-current container:
Code:
chpasswd: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory Code:
chpasswd: (user root) pam_chauthtok() failed, error: |
You need to add libpwquality
|
I still get the same error with libpwquality.
|
Did you add cracklib too?
|
Making progress. After adding libpwquality and cracklib I get this:
Code:
chpasswd: (user root) pam_chauthtok() failed, error: |
Quote:
Code:
lxc-create -n test -t slackware --bdev dir |
According to https://www.codevoila.com/post/26/fi...word-in-ubuntu, it's related to permission of /etc/shadow
|
Quote:
|
Quote:
So I updated the template to add pam, cracklib and libpwquality, and I get the same, I thnk, as the other poster. Code:
Configuring... |
Have you checked the /etc/shadow permission?
|
Quote:
|
Quote:
Code:
root@phoenix:/var/cache/lxc/slackware/rootfs-current-x86_64/etc# ls -al shadow |
Well, I've got a workaround. With the following changes to /usr/share/lxc/templates/lxc-slackware, I can get a working container. Basically, I add the a, ap, d, k, l, and n groups to the installer. It's no longer minimal, though, but that's okay for me because I wanted a full install anyway. But I think this confirms that the problem is missing packages in addition to the ones that have already been identified (rather than a configuration issue like permissions), but I don't know which ones.
Code:
--- lxc-slackware 2020-01-02 15:21:06.000000000 -0500 |
I just tested it and I spotted an issue with pam_securetty (as we seem to login from pts/0 using lxc-console): you can check if this is solves your issue editing /etc/securetty in the container (allowing login from pts)
Code:
sed -i "s|^#pts|pts|" $ROOT/etc/securetty regarding the packages template for the container this is the new one I used here Code:
aaa_base BTW, here you can find a new version of the build script with the new template and the new init scripts (synced with the ones from Slackware current as today) http://ponce.cc/slackware/testing/lxc/ |
Quote:
|
All times are GMT -5. The time now is 01:39 PM. |