Seite 1 von 1

Creating Persistent Users in Opsi-Server Docker Edition for Configed Use

Verfasst: 12 Mär 2025, 14:27
von thinkabout
Hi,

I am attempting to create users inside the opsi-server (Docker) for subsequent use with Configed.

I have reviewed the manual, but it only contains documentation for the non-Docker version:
https://docs.opsi.org/opsi-docs-en/4.3/ ... ation.html

I understand that the user "pcpatch" user has some information stored in the following location on the host machine where the container runs, that is located on opsi/opsi_data/etc/passwd .

How can I create permanent users on opsi (Docker), and where is this information is stored outside the container?

Erstellen persistenter Benutzer in der Docker-Edition des opsi-Servers für die Verwendung mit Configed

Verfasst: 12 Mär 2025, 14:28
von thinkabout
Ich möchte Benutzer im opsi-Server (Docker) für die spätere Verwendung mit Configed erstellen.

Ich habe das Handbuch gelesen, es enthält jedoch nur Dokumentation für die Nicht-Docker-Version:
https://docs.opsi.org/opsi-docs-en/4.3/ ... ation.html

Ich verstehe, dass der Benutzer „pcpatch“ einige Informationen am folgenden Speicherort auf dem Host-Rechner, auf dem der Container läuft, gespeichert hat: opsi/opsi_data/etc/passwd.

Wie kann ich persistente Benutzer auf opsi (Docker) erstellen und wo werden diese Informationen außerhalb des Containers gespeichert?

Re: Erstellen persistenter Benutzer in der Docker-Edition des opsi-Servers für die Verwendung mit Configed

Verfasst: 13 Mär 2025, 08:28
von Andi_089
Morgen,

ohne jetzt nachgesehen zu haben, wäre die docker-compose.yml oder im Zweifel noch die .env der passende Ort für weiter User*innen

Re: Creating Persistent Users in Opsi-Server Docker Edition for Configed Use

Verfasst: 20 Mär 2025, 08:47
von n.doerrer
Hello,

it is rather unorthodox to use different local users in docker context. If you really need this, you have to edit the Dockerfile accordingly and build the container yourself (see https://github.com/opsi-org/opsi-docker). A cleaner way would be to use AD users if you have the possibility.

EDIT: Ich habe beide Themen mal zusammengeführt. Bitte immer nur einen Thread aufmachen.