-
-
Notifications
You must be signed in to change notification settings - Fork 187
Closed as not planned
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When I specify a username that matches a system group name, usermod fails with an error
Expected Behavior
An error should be raised and the container should exit
Steps To Reproduce
Set USERNAME is "www-data", the same name is an existing group in the system
Environment
- OS: Debian 12
- How docker service was installed: aptCPU architecture
x86-64
Docker creation
version: "3.9"
services:
wordpress:
networks:
- blackhole
hostname: openssh-server
container_name: openssh-server
restart: unless-stopped
image: lscr.io/linuxserver/openssh-server:latest
ports:
- "2222:2222"
environment:
- PUID=33
- PGID=33
- TZ=Europe/Rome
- USER_NAME=www-data # Problem with system group
volumes:
- /mnt/storage/openssh-server/config:/config
- /mnt/storage/www-data/:/www-data/
networks:
blackhole:
name: container-net
external: trueContainer logs
[migrations] started
[migrations] no migrations found
groupmod: group 'www-data' already exists
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 33
User GID: 1001
───────────────────────────────────────
Linuxserver.io version: 9.7_p1-r4-ls179
Build-date: 2024-12-01T18:53:35+00:00
───────────────────────────────────────
User name is set to www-data
sudo is disabled.
SSH host public key(s):
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNgS4rePrIpw+uygy69sltdCQdXTzDtVujxBWA+wk/JY9lYmlDzu1KiV/GW1VFA5wC4AJTprxdJmnOAwDSaBamo= root@openssh-server
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAueSTsWJbt0ku3byZZ8iKqWhMpvVSfy14m7jDP0zJN6 root@openssh-server
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDXmqMpNt9jtEND7PRyEvQJqZdLUMCrhs+iuUESeFskdjfqvpQH5hFRuIRX/wnct1HJn+aOKhpyvVWuRvlR/GhPqbHyMhHJjavwj4+uZ4hz2QBfxaqu6p6mhYurbFfHDly1ob+mANAehuelABHZcArEWG7JItiH2pLIAQIWxGj1XBxx+Y7+rtar1JIN4vpNmhs9S+tCTv+GFa1hHj5N0+3WJpHFWMc5Jl8rB+381SLUPd5tvQoQ47fR9uTzgERni2UJHBBDsWvbwDLN1g05fbx0h8ksPu5i1tzkI1e6RfhlwNAn9jREBfisWiK8wulOGdN4noFUnIM9ULdSfZ/9v9qknEPi8Y2Muk6hU0CldrMaTIXI/xrp9lfpoe/E3Z7S5OqdgLPt+AP9Wvr873l7uolCUMkJXqOeV44RQavtLSvbgYujZIa2gqNgXyqm0mtOp5sXYfoh1wEeU3dAZkue2x/Bwe/2Dt5rmpydtLebenJNmT4wS+Jgl4lQLPdn7mQ+bZ0= root@openssh-server
sshd is listening on port 2222
User/password ssh access is disabled.
[custom-init] No custom files found, skipping...Metadata
Metadata
Assignees
Type
Projects
Status
Done