Hi,
i'm working with yocto (krogoth) project on the imx6 processor. I created the sato image where a GNOME desktop manager is used.
I added a password for root user and add a new user from yocto:
#first delete "debug-tweaks" EXTRA_USERS_PARAMS = "usermod -P password root; \ useradd -P 123456 myUser;"
it worked.
Now, i want to boot matchbox-desktop with "myUser" and not as a root, there is any procedure to do on yocto?
I beleve that is sufficient because i tried to run a new matchbox-desktop istance with myUser, all internal application desktop running with "myUser". That's what i want.
Is necessary to run xserver as a "myUser"? In this case, how it do?
Thanks,
Marco
Hello Marco,
Does your image have the debug-tweaks enabled? These force to boot as root and the recommendation is shown as a comment, but I wanted to double check that that was not the problem.
Regards,
However this not solve my problem, because if the display manager start as a root, from the "FIle manager" or the "Terminal" is possible to delete and modify any files and i don't want this.
Is there any parameters to modify it to start with another user?
Thanks
Marco
Hello Marco,
This is a very good question and I was looking at the Yocto documentation looking for an answer without finding anything.
In general terms you would be able to achieve this by changing the shell of the user you want to use for it to be the default system shell. This would be done with update-alternatives to set that symbolic link but I haven’t tested it and then there would be the matter or including it in Yocto. I haven’t found any information on how to do it although there is a update-alternatives.bbclass which you may inherit if you would like to try to make a recipe.
I
t sounds like something that should be relatively easy to do and yet there is very little information on the Yocto documentation and forums.
Regards,