Skip to content

Create additional user/group for suprsync agent#1068

Open
BrianJKoopman wants to merge 1 commit into
mainfrom
koopman/suprsync-user
Open

Create additional user/group for suprsync agent#1068
BrianJKoopman wants to merge 1 commit into
mainfrom
koopman/suprsync-user

Conversation

@BrianJKoopman
Copy link
Copy Markdown
Member

Description

This PR creates a new user/group (user1010/group1002) for user with suprsync.

Motivation and Context

The suprsync agent needs to interact with an sqlite database that is bind mounted in from the host filesystem, and it needs to SSH to other machines. For SSH to work properly the user needs a home directory.

This change allows the suprsync agent at site to be run with user: "1010:1002" to run as the created user and map permissions from the host system into the container correctly.

How Has This Been Tested?

This has not been tested with the suprsync agent, just by building the image locally and inspecting the user within a running container:

$ docker run -it --rm --entrypoint=/bin/bash socs:user
root@42a04144036a:/# su user1010
$ id
uid=1010(user1010) gid=1002(group1002) groups=1002(group1002)
$ cd
$ pwd
/home/user1010
$ ls -lthra
total 20K
-rw-r--r-- 1 user1010 group1002  807 Jan  6  2022 .profile
-rw-r--r-- 1 user1010 group1002 3.7K Jan  6  2022 .bashrc
-rw-r--r-- 1 user1010 group1002  220 Jan  6  2022 .bash_logout
drwxr-xr-x 1 root     root      4.0K May 26 14:55 ..
drwxr-x--- 2 user1010 group1002 4.0K May 26 14:55 .

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@BrianJKoopman BrianJKoopman requested a review from mhasself May 26, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant