X2Go Bug report logs - #1145
x2godbadmin + postgres + non-existent home directory = wrong ownerships

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Stefan Baur <X2Go-ML-1@baur-itcs.de>

Date: Tue, 7 Feb 2017 13:15:02 UTC

Severity: normal

Full log

🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1145: [X2Go-Dev] Bug#1145: x2godbadmin + postgres + non-existent home directory = wrong ownerships
Reply-To: Nable <nable.maininbox@googlemail.com>, 1145@bugs.x2go.org
Resent-From: Nable <nable.maininbox@googlemail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Wed, 08 Feb 2017 01:35:01 +0000
Resent-Message-ID: <handler.1145.B1145.148651758227376@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 1145
X-X2Go-PR-Package: x2goserver
Received: via spool by 1145-submit@bugs.x2go.org id=B1145.148651758227376
          (code B ref 1145); Wed, 08 Feb 2017 01:35:01 +0000
Received: (at 1145) by bugs.x2go.org; 8 Feb 2017 01:33:02 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Level: *
X-Spam-Status: No, score=1.2 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	autolearn=no version=3.3.2
Received: from localhost (localhost [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id E2B235DA49
	for <1145@bugs.x2go.org>; Wed,  8 Feb 2017 02:33:01 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([])
	by localhost (ymir.das-netzwerkteam.de []) (amavisd-new, port 10024)
	with ESMTP id wi7FKjOWO5iS for <1145@bugs.x2go.org>;
	Wed,  8 Feb 2017 02:32:55 +0100 (CET)
Received: from mail-ot0-f173.google.com (mail-ot0-f173.google.com [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id D33B15DA2D
	for <1145@bugs.x2go.org>; Wed,  8 Feb 2017 02:32:54 +0100 (CET)
Received: by mail-ot0-f173.google.com with SMTP id 32so101084672oth.3
        for <1145@bugs.x2go.org>; Tue, 07 Feb 2017 17:32:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=20161025;
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
X-Gm-Message-State: AMke39k6yqZG1NUUd2DPjTmSv2FB8heuDz2+zsRFnvsuHR0+TNYCGhk7NJCTj8CSrukbaGQXlQusUQpTjMdV9Q==
X-Received: by with SMTP id u3mr9775782oif.97.1486517573367; Tue,
 07 Feb 2017 17:32:53 -0800 (PST)
MIME-Version: 1.0
Received: by with HTTP; Tue, 7 Feb 2017 17:32:52 -0800 (PST)
In-Reply-To: <2889078d-8670-e2b9-c92e-f303690e0388@baur-itcs.de>
References: <8fbce1f7-5f1a-465b-615b-b2ccf6b87b51@baur-itcs.de>
 <CALxOYEbeJfQ2Ona6urYjPezRbMBx8zGvuQShvnwGN5m3zo1fTA@mail.gmail.com> <2889078d-8670-e2b9-c92e-f303690e0388@baur-itcs.de>
From: Nable <nable.maininbox@googlemail.com>
Date: Wed, 8 Feb 2017 04:32:52 +0300
Message-ID: <CALxOYEa2+wW-HKs9QE9X5Bi3uQ0o2n2oT=DOwestqVZm3WHFpw@mail.gmail.com>
To: Stefan Baur <X2Go-ML-1@baur-itcs.de>
Cc: 1145@bugs.x2go.org
Content-Type: text/plain; charset=UTF-8
> Are you aware of anything that does that and that we could call?
I think that setup with absent homedir && non-configured pam_mkhomedir
is broken anyway and one can only fail gracefully with a good error
Other variants (homedir already exists and/or pam_mkhomedir is
configured) can be covered by calling `su' or `sudo' with appropriate
options (e.g. su -c /bin/true "${user_to_add}").
This would fail if homedir (either existing or not) is located on a
network or encrypted FS (where local root can't do anything without
knowing user's password) but this is a separate issue.

I've also seen posts (e.g.[1]) about `oddjob-mkhomedir' (and I've
already seen it in Debian repos) but I wonder if this way is
production-ready. And this way seems to be more complex.

[1] https://access.redhat.com/discussions/903523

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Tue Apr 16 03:57:27 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.