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
X-X2Go-PR-Keywords: 
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
	ymir.das-netzwerkteam.de
X-Spam-Level: *
X-Spam-Status: No, score=1.2 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_SORBS_SPAM,URIBL_BLOCKED
	autolearn=no version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	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 ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (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 [74.125.82.173])
	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;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc;
        bh=TeC7iCHcWadNyoP7HAvpEyTsf/IycQvfAZKRxvBC8bc=;
        b=HYxGrU+OyJBi0OsMT6S9EXqKvwFkcRDrFXWP+H0JwJNcSflYJA/Uw4PNfNkb3LAPwf
         OMQYGU31ZM70kDoWDfQbBRKPBEFp0xEInhcOiD4IR5XkcZqU1fBOfNfjM9jF2LVLWdbi
         HsYW4ErI91DbfKP952EccYQobj2Gu1w7MP07ZqljELrTqhr9mhBR8ABxtebv0BuhyxX1
         N/14aOBnFWmW4lRzCuxaIzGGeSgG+5sST4/VggenqI9a81CeB7IGCZM0Yl/NmbI7vCyK
         oeaNFR/KQLcQK9xfUJUW9uNwxwsfwhCqOQg7KTDhQJa4wom4xChMHfckUW2lKUY1gqKm
         Oz4Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:cc;
        bh=TeC7iCHcWadNyoP7HAvpEyTsf/IycQvfAZKRxvBC8bc=;
        b=JaWmLMTLK9nRQ9TW9znDFsgRAu43O9Lr8eVt1rPCFKTyaekqSCRZXJ6KAecvo9wiwh
         pEUMuDyN2zghskrzae7zVP91S0JqHRjrntooBoJfnvCjihuHG69cmEZqWgVyil7yyKf8
         wLBIvXs85tH40/YvAQwD61pK5Jqf6MUqUVfF8bN/N2cOOfnxSDy26Onwo/M66x9jWr13
         ByWD2GlTQsvgp6ts7fBYeJSU69nixVzlWlmhtNkm0/2NcM1NfsYl7qdA/LoOc9n8j4Oy
         d5TZA9WcQfcsA39EofVq5O74koxaPZ3UxLSN0sHaHQbSvoimhOylJW7F8QYLwyks8MMx
         T05Q==
X-Gm-Message-State: AMke39k6yqZG1NUUd2DPjTmSv2FB8heuDz2+zsRFnvsuHR0+TNYCGhk7NJCTj8CSrukbaGQXlQusUQpTjMdV9Q==
X-Received: by 10.202.196.3 with SMTP id u3mr9775782oif.97.1486517573367; Tue,
 07 Feb 2017 17:32:53 -0800 (PST)
MIME-Version: 1.0
Received: by 10.182.104.103 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
message.
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: Sat Nov 23 23:11:34 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.