cannot create directory '/run/user/1000': Permission denied

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cannot create directory '/run/user/1000': Permission denied

3,461 Views
vincentz63
Contributor IV

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.

0 Kudos
Reply
1 Reply

3,396 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Can you try to add sudo user to  make the bsp?

0 Kudos
Reply