I know that this idea is a little bit out of the ordinary, but I would like to make it happen. I would like to rename an existing tc user account with something else. I know that there is a bootloader user option, but this one is actually adding a new user account with a default tcuser password and not renaming/replacing an existing one.
So I approached this problem by remastering initrd where I renamed all tc user entries with an account name of my choosing in the following files
/etc/passwd
/etc/shadow
/etc/sudoers
/etc/init.d/tc-config
Additionally, I updated /etc/shadow with my password hash and I also added noautologin option to the extlinux bootloader options list.
After some testing I can confirm that I am able to login to the system with my username and password, but it behaves a little bit strange. When I enter my credentials I need to press Enter button four more times (without writing password in) to get rid of password entry field and to get to the shell prompt.
It looks something like this:
login: user_name [Enter]
password: user_password [Enter]
password: [Enter]
password: [Enter]
password: [Enter]
password: [Enter]
$:
I have no idea why system behaves this way, but my wild guess would be that I most probably missed/forgot to update one of the system/configuration files when remastering initrd.
If you have any suggestions or thoughts on what I should check or how I should approach this issue then let me know. Thank you!