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] [ubuntu-*] [unraid] Unminimize script cause "abc" user to disappear #180

Closed shinji257 closed 10 months ago

shinji257 commented 11 months ago

Is there an existing issue for this?

Current Behavior

After running the unminimize script the abc user stops being able to sudo. Rebooting causes the console to spam with abc user not existing. I checked /etc/passwd and /etc/group and noted that the abc user disappeared from the passwd file and the videon511 group disappeared from the group file along with the abc user.

note: this may impact other containers. I only noticed it with this one in quick testing. latest branch (alpine xfce) doesn't have this script.

Expected Behavior

This shouldn't impact the docker container bringing in the abc user.

Steps To Reproduce

  1. Install webtop using any ubuntu based branch
  2. Run unminimize script as root. Doesn't matter if you use the desktop or do this via console
  3. You can tell it broke by just trying to sudo. If it broke then sudo will say you are no longer in the file.

Environment

- OS: Unraid 6.12.4
- How docker service was installed: Unraid application from linuxserver's repository.  ubuntu-xfce branch but also checked ubuntu-mate as well.

CPU architecture

x86-64

Docker creation

https://imgur.com/RwlnlWs

Container logs

[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:    99
User GID:    100
───────────────────────────────────────

**** creating video group videon511 with id 18 ****
**** adding /dev/dri/renderD128 to video group videon511 with id 18 ****
**** permissions for /dev/dri/card0 are good ****
[custom-init] No custom files found, skipping...
[ls.io-init] done.
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built Sep 30 2023 18:49:18
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

 2023-10-07 12:03:01,439 [INFO] websocket 0: got client connection from 127.0.0.1
 2023-10-07 12:03:01,446 [PRIO] Connections: accepted: @10.0.0.67_1696705381.439443::websocket
 2023-10-07 12:12:00,086 [PRIO] Connections: closed: @10.0.0.67_1696705381.439443::websocket (Clean disconnection)
[migrations] started
[migrations] no migrations found
usermod: user 'abc' does not exist
───────────────────────────────────────

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

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

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

───────────────────────────────────────
GID/UID
───────────────────────────────────────
id: ‘abc’: no such user
id: ‘abc’: no such user

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

/usr/bin/find: ‘abc’ is not the name of a known user
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
/usr/bin/find: ‘abc’ is not the name of a known user
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
/usr/bin/find: ‘abc’ is not the name of a known user
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
chown: invalid user: ‘abc:abc’
id: ‘abc’: no such user
id: ‘abc’: no such user
id: ‘abc’: no such user
**** creating video group videounxo with id 18 ****
**** adding /dev/dri/renderD128 to video group videounxo with id 18 ****
usermod: user 'abc' does not exist
id: ‘abc’: no such user
id: ‘abc’: no such user
id: ‘abc’: no such user
**** adding /dev/dri/card0 to video group videounxo with id 18 ****
usermod: user 'abc' does not exist
[custom-init] No custom files found, skipping...
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
[ls.io-init] done.
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
s6-envuidgid: fatal: unknown user: abc
github-actions[bot] commented 11 months ago

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

thelamer commented 10 months ago

What is an "Unminimize script" ??