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: Bug#1145: x2godbadmin + postgres + non-existent home directory = wrong ownerships
Reply-To: Stefan Baur <X2Go-ML-1@baur-itcs.de>, 1145@bugs.x2go.org
Resent-From: Stefan Baur <X2Go-ML-1@baur-itcs.de>
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 13:35:02 +0000
Resent-Message-ID: <handler.1145.B1145.148656062923454@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.148656062923454
          (code B ref 1145); Wed, 08 Feb 2017 13:35:02 +0000
Received: (at 1145) by bugs.x2go.org; 8 Feb 2017 13:30:29 +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.4 required=3.0 tests=BAYES_00,RCVD_IN_SORBS_SPAM
	autolearn=no version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 293E45DA4B
	for <1145@bugs.x2go.org>; Wed,  8 Feb 2017 14:30:29 +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 9tJuO9Ezwr2I for <1145@bugs.x2go.org>;
	Wed,  8 Feb 2017 14:30:22 +0100 (CET)
X-Greylist: delayed 302 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Wed, 08 Feb 2017 14:30:22 CET
Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 1F81E5DA49
	for <1145@bugs.x2go.org>; Wed,  8 Feb 2017 14:30:22 +0100 (CET)
Received: from [192.168.0.23] ([78.43.90.159]) by mrelayeu.kundenserver.de
 (mreue003 [212.227.15.129]) with ESMTPSA (Nemesis) id
 0M4DUV-1cJF0P3cLj-00rsUo; Wed, 08 Feb 2017 14:25:18 +0100
To: x2go-dev@lists.x2go.org, 1145@bugs.x2go.org,
 Nable 80 <nable.maininbox@googlemail.com>,
 Walid MOGHRABI <w.moghrabi@servicemagic.eu>
References: <8fbce1f7-5f1a-465b-615b-b2ccf6b87b51@baur-itcs.de>
 <CALxOYEbeJfQ2Ona6urYjPezRbMBx8zGvuQShvnwGN5m3zo1fTA@mail.gmail.com>
 <2889078d-8670-e2b9-c92e-f303690e0388@baur-itcs.de>
From: Stefan Baur <X2Go-ML-1@baur-itcs.de>
Message-ID: <6a5e1910-426a-fbe5-eda0-e202b77575b8@baur-itcs.de>
Date: Wed, 8 Feb 2017 14:24:54 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <2889078d-8670-e2b9-c92e-f303690e0388@baur-itcs.de>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="2xg8cCiHChkmC4Fdgt4VRMLlfl96NP6Ug"
X-Provags-ID: V03:K0:efd4at16DIh931WySWhzP1GfwflLN8OCt92+1d05nA0BHRalsCA
 yN1BJeyOvaM3EB8spX2buas7zFldhDm+UYYThRw9GuFBPcLJUWD5+XeJzr+9d6IYBpSj1H9
 pdzEPEfhMIi08Ih9YzdA58eQncmsEiehDRFNIyoMhq15iWo1baZTB2CLXGEey29Nkzd51q0
 Pi0k7R+DS/6ULrNlCMVBA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:lmXpy5XyliI=:AbPLcHVo0Uf/lKeh6KF8Ew
 bYyIHOq1ahxiERqb5lx1gxAQRSPF+dS3xh1Sr2vhPOmBjwvYTVptRY4oh/Mmd7FbwCM23AZMm
 K3MDfXGL/Oa812M/FMs/jlux7vQrXv84jsywd89MH1mMLjgmleQnToMkV2ZpnRIBdyFJWywwZ
 cUGXrbCMUbndkdlas/Fl3FQSpZpxHkCfYsrbsowbm6uDgbhImDMpSYc+hEYrx8AAI2oP1B43m
 Yy6wdoOG4nL58ECnwwooIOr4UWgWQg2C8VhX1tPsTqSKm2kYTP2suJYllocpXHeUN6Ui0Du5D
 T4SOxb1H4m2lwByMA+CENf7HPgIe98+HwSpPuO0VnQBBcPgZ4VegDzoH0KLEWZir0ZfJZzI3w
 /x/TPx7Z1ruiNmZFfPt3uPjL1/Ey0onZhwkoB1TLUUETMOLRq8+TTikadayrqlcMAdi6HkCAN
 9cohl43EFXq8K6IbW3EZCK8064aB62N5qUwCc4WrjGzNHwxKsBG+YLOUkawXFY96N3MvYitLJ
 l4aZjq2C2Lysv7cJsAR8DGJNgjaS5C0yPGUcCRVOiO0q9djeTa1R6qmeMCsOmEsV25MRyUt6M
 J4AAO5by90t/rvayEb7DQvuWPhBVgqT18Q9LZkKuh+cconM/fUpSeoOiU7Y9gDHenz1uGKyYQ
 I/VhVgr4Js0eRtREgsAxAtx6gMp86bx1It4WNZlalAsXVuU7IZB4Zc1UwyFkw5k5kyiI=
[Message part 1 (text/plain, inline)]
Am 07.02.2017 um 23:41 schrieb Stefan Baur:
> x2godbadmin, however, needs to be run
> - on the x2goserver
> - by root
> - before the user logs in
> 
> -> chicken and egg.

Ha, I think I found a way to "hatch the egg"!

As root, do:

su <username> -s /bin/true # this triggers pam_mkhomedir for <username>
x2godbadmin --adduser <username>

We *might* consider adding that inside x2godbadmin, but would have to
make sure it is only used if pam_mkhomedir is in use/users are non-local
users (because it won't do the trick if it's a local user account that
doesn't have a homedirectory yet).

-Stefan

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243

[signature.asc (application/pgp-signature, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 16:10:13 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.