Quantcast
Channel: Active questions tagged password - Ask Ubuntu
Viewing all articles
Browse latest Browse all 338

Update/set root password in auto-install

$
0
0

I need to set the root password in the autoinstall as it allows me to check the system by logging into the console after installation. Unfortunately, this doesn't seem to work, and I have the following:

#cloud-configusers:  - name: root    lock_passwd: false    hashed_passwd: <output from mkpasswd --method=SHA-512>

I even tried using late-commandsrun-command sections with chpasswd commands like the following, but it didn't work

chroot /target sh -c 'echo "root:<output from mkpasswd --method=SHA-512>" | /usr/sbin/chpasswd -e'

Is it possible to change the root password using auto-install? If so, I would appreciate any assistance. Thanks


Viewing all articles
Browse latest Browse all 338

Trending Articles