User login fails to create /run/user/uid directory

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

User login fails to create /run/user/uid directory

1,983 Views
keith_rogers
Contributor I

I installed L4.14.78 on my i.MX 8M Mini evk. I created a normal user account via adduser. When I login to that account I get the following error:

           mkdir: cannot create directory '/run/user/1001': Permission denied

followed by this error:

           chmod: cannot access '/run/user/1001': No such file or directory

The login does get into the shell and such, but I presume a number of applications that need temp storage space will fail because of the missing directory. Root login does not have the problem. Help to fix this would be welcomed.

Labels (2)
3 Replies

1,608 Views
garyhubley
Contributor I

Having the same problem. i.MX8M nano. Yocto Zeus. 

0 Kudos

1,486 Views
vincentz63
Contributor IV

Same issue. Did you find a solution?

0 Kudos

1,745 Views
joanxie
NXP TechSupport
NXP TechSupport

what command do you put when you get the wrong message? did you login as root, use like "sudo"?

0 Kudos