-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Labels
enhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on
Description
Due to auto-creation of UIDs and GIDs in the container, permissions could be incorrectly mapped when files are persisted on the host.
Consider this example:
Host has the following users and groups
| UID | Name |
|---|---|
| 1000 | root |
| 1001 | admin1 |
| 1002 | admin2 |
| 1003 | user1 |
| 1004 | user2 |
| GID | Name |
|---|---|
| 1000 | root |
| 1001 | admin_grp |
| 1002 | user_grp |
If this container is launched with a config specifying 2 users like this:
"Users": [
{
"Username": "user1",
"Password": "pass1"
},
{
"Username": "user2",
"Password": "pass2"
}
]
Then the container will contain the following groups:
| GID | Name |
|---|---|
| 1000 | sftp-user-inventory |
| 1001 | user1 |
| 1002 | user2 |
Files created by user1 in the container will be owned by admin1:admin_grp on the host.
Files created by user2 in the container will be owned by admin2:user_grp on the host.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on