[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Custom User Creation



Can someone please guide me on this?

I want to change the default username and password instead of the user/live.

I do not want to use the boot parameters but would like to have everything done using files and hooks.

There is multiple documentation online and not all is correct/updated it seems.

So far I tried this but nothing is working:

Created a file: config/includes.chroot_after_packages/etc/live/config.conf.d/10-user-setup.conf with the below:

LIVE_HOSTNAME="debianbox"
LIVE_USERNAME="admin"
LIVE_USER_FULLNAME="Administrator"'


Created a file:  config/includes.chroot_after_packages/lib/live/config/2000-passwd with the below:
#!/bin/sh

live-config hook: passwd
echo "admin:admin" | chpasswd
echo "root:ADMIN" | chpasswd

Reply to: