Results 1 to 2 of 2

Thread: Can't change password in LXC

  1. #1
    Join Date
    Mar 2017
    Posts
    17

    Default Can't change password in LXC

    I'm following this guide for setting up a Leap 15.0 container on Tumbleweed:
    https://doc.opensuse.org/documentati...t/cha.lxc.html

    The last step of setting up the rootfs doesn't work:
    root # echo "root:YOURPASSWD" | chpasswd -R /PATH/TO/ROOTFS
    Nothing happens after entering this line, there is no error message either. It does work locally though (echo "root:mypassword" | chpasswd)

  2. #2
    Join Date
    Mar 2017
    Posts
    17

    Default Re: Can't change password in LXC

    This worked now:

    root # chroot /PATH/TO/ROOTFS sh -c "echo '$USER:$PASS' | chpasswd"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •