Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Nobody and Abc user/group have the same ID #162

Closed
1 task done
cristol30 opened this issue Jul 6, 2023 · 9 comments
Closed
1 task done

[BUG] Nobody and Abc user/group have the same ID #162

cristol30 opened this issue Jul 6, 2023 · 9 comments

Comments

@cristol30
Copy link

cristol30 commented Jul 6, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

User/Group abc and nobody have the same ID

root@ad27be0ba8b1:/# cat /etc/passwd | grep 65534
nobody: x :65534:65534:nobody:/:/sbin/nologin
abc: x :65534:65534::/config:/bin/bash

When i use this environment variables :
environment:
- PUID=65534
- PGID=65534

I can't use /bin/bash

Expected Behavior

No response

Steps To Reproduce

Start this container with PUID and PGID set with an existing ID or GID. For Nobody user/group there are 2 entries in /etc/passwd

Try to start Konsole but /sbin/nologin

The first match in file /etc/passwd for the user/group 65534 in my case is nobody: x :65534:65534:nobody:/:/sbin/nologin and not abc: x :65534:65534::/config:/bin/bash

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

---
version: "2.1"
services:
  AlpineKde:
    image: linuxserver/webtop:alpine-kde
    container_name: AlpineKde
    environment:
      - PUID=65534
      - PGID=65534
      - TZ=Europe/Paris
      - TITLE=Alpine #optional
      - CUSTOM_USER=$CUSTOM_USER
      - PASSWORD=$PASSWORD
    volumes:
      - /image/Docker/AlpineKde/config:/config
    ports:
      - 3001:3001
    shm_size: "1gb" #optional
    restart: unless-stopped

Container logs

[root@dvlcvvoipft4cs01 Docker]# docker logs -f AlpineKde
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    65534
User GID:    65534
───────────────────────────────────────

[custom-init] No custom files found, skipping...
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.1.0 - built Jul  1 2023 18:48:38
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

[ls.io-init] done.
 2023-07-06 16:37:19,974 [INFO] websocket 0: got client connection from 127.0.0.1
 2023-07-06 16:37:20,030 [PRIO] Connections: accepted: @192.168.1.200_1688654239.990250::websocket
 2023-07-06 16:37:20,237 [PRIO] VNCSConnST: Failed to flush remaining socket data on close: write: Broken pipe (32)
 2023-07-06 16:37:20,237 [PRIO] Connections: closed: @192.168.1.200_1688654239.990250::websocket (write: Broken pipe (32))
 2023-07-06 16:37:20,570 [INFO] websocket 1: got client connection from 127.0.0.1
 2023-07-06 16:37:20,620 [PRIO] Connections: accepted: @192.168.1.200_1688654240.582300::websocket
 2023-07-06 16:37:30,741 [PRIO] Connections: closed: @192.168.1.200_1688654240.582300::websocket (Clean disconnection)
 2023-07-06 16:37:32,217 [INFO] websocket 2: got client connection from 127.0.0.1
 2023-07-06 16:37:32,237 [PRIO] Connections: accepted: @192.168.1.200_1688654252.217770::websocket
 2023-07-06 16:43:06,735 [PRIO] Connections: closed: @192.168.1.200_1688654252.217770::websocket (Clean disconnection)
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@aptalca
Copy link
Member

aptalca commented Jul 6, 2023

And?

@cristol30
Copy link
Author

cristol30 commented Jul 7, 2023

And?

"When i use this environment variables :
environment:

  • PUID=65534
  • PGID=65534

I can't use /bin/bash"

/sbin/nologin and /sbin/bash conflict for user 65534

@aptalca please read the issue fully and have the necessary skills before just sending "And?"

@Roxedus
Copy link
Member

Roxedus commented Jul 7, 2023

Do you expect a system to work properly when there's two users with the same id?

@cristol30
Copy link
Author

Do you expect a system to work properly when there's two users with the same id?

For @aptalca YES :)

@github-actions
Copy link

github-actions bot commented Aug 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@drizuid
Copy link
Member

drizuid commented Sep 12, 2023

closing, this is just an obvious user error and the user is being obtuse and rude.

@drizuid drizuid closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2023
@cristol30
Copy link
Author

closing, this is just an obvious user error and the user is being obtuse and rude.

Thank you for your constructive response @drizuid

@drizuid
Copy link
Member

drizuid commented Sep 13, 2023

closing, this is just an obvious user error and the user is being obtuse and rude.

Thank you for your constructive response @drizuid

It was my pleasure

@linuxserver linuxserver locked as resolved and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

4 participants