Halon platform doesn't have root login enabled by default, and the system is managed via the REST API (usually from the web administration). Some operations, such as doing an offline software update or running fsck manually, requires you to login as root.
How to enable root login
- Connect to the console (video or serial)
- Reboot (possibly by powering off)
- Do not press any keys when the firmware prompt appears
- Wait for it to start booting (takes about a minute)
- When you see
Press any key for recovery...
, do so (press any key) - Run
root-shell
to launch a root shell - Run
passwd
to set a root password - Run
exit
to return to the boot prompt - Run
boot
to boot
Once booted, you can login as root over SSH, and make the root login persistent between reboots by uploading a SSH public key to /cfg/authorized_keys
root@mta:~ # cat /cfg/authorized_keys
ssh-rsa AAAXXX...XXX6aw== user@host
or writing the password hash to /cfg/servicemode
# cat /etc/master.passwd | grep Charlie root:$6$XXX:0:0... # echo -n '$6$XXX' > /cfg/servicemode
Comments
0 comments
Article is closed for comments.