I've added a new user to my Yocto image for i.MX8MMini:
EXTRA_USERS_PARAMS = "\
useradd -b /var/tmp/ -m user_name; \
usermod -P ********* user_name; \
"
When I SSH using the user I get:
~$ ssh user_name@192.168.0.61
user_name@192.168.0.61's password:
mkdir: cannot create directory '/run/user/1000': Permission denied
chmod: cannot access '/run/user/1000': No such file or directory
This is the same error as was reported here: https://community.nxp.com/t5/i-MX-Processors/User-login-fails-to-create-run-user-uid-directory/td-p/...
Any help to resolve this would be appreciated.
Can you try to add sudo user to make the bsp?