Closed Ryanf55 closed 7 months ago
I would absolutely not expect changes to a local user account to affect other user accounts or new user accounts on the system. Such behavior would be a huge security problem, would it not?
FROM osrf/ros:humble-desktop-jammy RUN groupadd -r ros_user && useradd --no-log-init --create-home --system --gid ros_user ros_user USER ros_user WORKDIR /home/ros_user RUN colcon mixin list RUN pwd && ls
You bring up a good point.
I was under the impression since the ros2
containers are the root user by default, the other users would inherit what was installed as the root user. That is not a good assumption and does not appear how Linux user accounts are supposed to work. I will close this as invalid.
Goal:
Use the OSRF ROS 2 docker image
osrf/ros:humble-desktop-jammy
but with a non-root user. I would expect the~/.colcon
directory to be populated when I create the new user, but it is not. The new user has no mixins available.Steps to reproduce
Use the following dockerfile:
Dockerfile
And, build it.
Build output:
You can see the that
colcon mixin list
is empty, and there is no.colcon
folder in the home directory, which is where I expect the colcon user files to live.System Information
Here is the information my system reports on
python3-colcon-mixin.
Futher research
It seems it would be ideal if
colcon
installed its configuration parameters to/etc/skel
on Linux. Source: http://www.linfo.org/etc_skel.html