Hi all,
I am playing maaxboard-mini yocto langdale version,
but after I build with bitbake avnet-image-lite,It auto generate a user : weston.
Q1:I can not find where is in the source code. I want to remove it. How to do ?
and I add the below code in avnet-image-lite.bb. it can add myuser, but the permission is root:root.
Q2:how I can add permission myuser:myuser for myuser?
Q3: and in building process, I copy files in /home/root, but the permission change to weston:users not root:root
how to do ?
Thank you very much.
# Set the root password: avnet
ROOT_PASSWORD="\$5\$abcd6789\$vlMo5CC1IJlipoXWQifbiMJ8fZqRIV26EXIi97RxPjC"
EXTRA_USERS_PARAMS = "usermod -p '${ROOT_PASSWORD}' root; \
useradd -p '${ROOT_PASSWORD}' myuser; \
usermod -G video myuser; \
debug info:
-sh-5.1# ls -l
total 8
drwxr-xr-x 4 root root 4096 Sep 12 16:00 myuser
drwx------ 4 root root 4096 Sep 13 11:07 root
-sh-5.1# cd ../root/
-sh-5.1# ls -l
total 8
drwxr-xr-x 6 weston users 4096 Mar 9 2018 fti-flash
drwxr-xr-x 6 weston users 4096 Mar 9 2018 fti-graph
Hi,
Thank you for your interest in NXP Semiconductor products,
1. Try deleting weston user with:
useradd -p '${ROOT_PASSWORD}' myuser; \
userdel weston
2. This might be useful.
Regards
1. not work.
can not remove user weston with userdel
after I remove line " ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'weston-init', '', d)", it can remove user weston.
2. not work.
the user : myuser permisson still: root:root. for /home/myuser
I am trying. I can force change it to myuser;myuser with chown -R myuser:myuser /home/myuser at startup script. need more (or another )solution