My Oracle Support Banner

OL: Change Password Of An LXC Container User Account (Doc ID 2300541.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 7.0 with Unbreakable Enterprise Kernel [3.8.13] and later
Linux x86-64


An LXC container has its own username and password definitions.  The password for an LXC account can be changed when needed, whether or not the container is running.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Connect To A Running Container As The Root User
 Remove The Password To Allow User Login And Normal Reset
 Step #1: Locate where the container files are kept
 Step #2: Where are the container files mounted by the LXC host?
 Step #3: Find the container root file system
 Step #4: Remove the second field for the problem user in etc/fstab
 Use the container root file system as a chroot(1) jail and change password normally

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.