I have a device with two users. root and michael. Over the serial port I can login as either. Over SSH I can only log in as michael. In a production scenario I want to be able to login as root for debug purposes.
I realize the security issues here. Which is why I will ask is it possible to create a user with elevated privilege?
My app.bb is as follows. I have also turned off debug tweaks
SUMMARY = “A small image just capable of allowing a device to boot.”
IMAGE_FEATURES += “ssh-server-openssh”
IMAGE_INSTALL = “packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}”
IMAGE_INSTALL_append = " packagegroup-core-ssh-openssh "
IMAGE_INSTALL_append = " openssh-sftp-server "
IMAGE_INSTALL_append = " can-utils "
IMAGE_INSTALL_append = "
iw
wireless-tools
wpa-supplicant
"IMAGE_LINGUAS = " "
LICENSE = “MIT”
inherit core-image
inherit extrausersIMAGE_ROOTFS_SIZE ?= “8192”
IMAGE_ROOTFS_EXTRA_SPACE_append = “${@bb.utils.contains(“DISTRO_FEATURES”, “systemd”, " + 4096”, “”, d)}"Change root password (note the capital -P)
EXTRA_USERS_PARAMS = "
usermod -P ‘toor’ root;
useradd -P ‘michael’ michael;
"
Blockquote
type or paste code here