linuxserver / docker-webtop

Ubuntu, Alpine, Arch, and Fedora based Webtop images, Linux in a web browser supporting popular desktop environments.
GNU General Public License v3.0
1.77k stars 175 forks source link

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

Closed cristol30 closed 12 months ago

cristol30 commented 1 year ago

Is there an existing issue for this?

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:

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[bot] commented 1 year ago

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

aptalca commented 1 year ago

And?

cristol30 commented 1 year ago

And?

"When i use this environment variables : environment:

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 commented 1 year ago

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

cristol30 commented 1 year ago

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

For @aptalca YES :)

github-actions[bot] commented 1 year ago

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 commented 12 months ago

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

cristol30 commented 11 months ago

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

Thank you for your constructive response @drizuid

drizuid commented 11 months ago

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