mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-10 03:29:49 +08:00
devcontainer: nopasswd for vscode user
This commit is contained in:
@@ -8,7 +8,9 @@ ARG USER_GID=1000
|
|||||||
RUN set -ex && \
|
RUN set -ex && \
|
||||||
groupadd --gid ${USER_GID} ${USERNAME} && \
|
groupadd --gid ${USER_GID} ${USERNAME} && \
|
||||||
useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME} && \
|
useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME} && \
|
||||||
usermod -a -G sudo ${USERNAME}
|
usermod -a -G sudo ${USERNAME} && \
|
||||||
|
echo "${USERNAME} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USERNAME} && \
|
||||||
|
chmod 0440 /etc/sudoers.d/${USERNAME}
|
||||||
|
|
||||||
RUN mkdir -p /home/${USERNAME}/catkin_ws/src && \
|
RUN mkdir -p /home/${USERNAME}/catkin_ws/src && \
|
||||||
chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/catkin_ws
|
chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/catkin_ws
|
||||||
|
|||||||
Reference in New Issue
Block a user