X2Go Bug report logs - #200
When user-directories do not exist, saving sqlpass with x2godbadmin is not possible

version graph

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

Reported by: Michael Kromer <michael.kromer@netitwork.net>

Date: Tue, 7 May 2013 09:48:01 UTC

Severity: normal

Tags: pending

Found in version 4.0.0.1

Fixed in version 4.0.0.2

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#200: When user-directories do not exist, saving sqlpass with x2godbadmin is not possible
Reply-To: Michael Kromer <michael.kromer@netitwork.net>, 200@bugs.x2go.org
Resent-From: Michael Kromer <michael.kromer@netitwork.net>
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: owner@bugs.x2go.org
Resent-Date: Tue, 07 May 2013 09:48:01 +0000
Resent-Message-ID: <handler.200.B.136791940822135@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 200
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.136791940822135
          (code B); Tue, 07 May 2013 09:48:01 +0000
Received: (at submit) by bugs.x2go.org; 7 May 2013 09:36:48 +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=0.0 required=5.0 tests=MIME_QP_LONG_LINE
	autolearn=ham version=3.3.2
X-Greylist: delayed 315 seconds by postgrey-1.34 at ymir; Tue, 07 May 2013 11:36:48 CEST
Received: from mozart.netitwork.net (mozart.netitwork.de [176.9.23.210])
	by ymir (Postfix) with ESMTP id 327DF5DB18
	for <submit@bugs.x2go.org>; Tue,  7 May 2013 11:36:48 +0200 (CEST)
Received: from mozart.netitwork.net (localhost [127.0.0.1])
	by mozart.netitwork.net (Postfix) with ESMTP id A45E7140107
	for <submit@bugs.x2go.org>; Tue,  7 May 2013 11:31:33 +0200 (CEST)
Received: from mozart.netitwork.net (localhost [127.0.0.1])
	by mozart (esets_smtp); Tue, 07 May 2013 11:31:33 +0200
X-Virus-Scanner: This message was checked by ESET Mail Security
	for Linux/BSD. For more information on ESET Mail Security,
	please, visit our website: http://www.eset.com/.
Received: from mozart.netitwork.de (localhost [127.0.0.1])
	by mozart.netitwork.net (Postfix) with ESMTP id 99F23140106
	for <submit@bugs.x2go.org>; Tue,  7 May 2013 11:31:33 +0200 (CEST)
From: Michael Kromer <michael.kromer@netitwork.net>
To: submit@bugs.x2go.org <submit@bugs.x2go.org>
Date: Tue, 7 May 2013 11:31:33 +0200
Mime-Version: 1.0
Content-Type: multipart/mixed; 
 boundary="=_RDcykfLwcdullapLPgDU61IeHej9d-NoY76HBtelzvV8mwbO"
X-Priority: 3 (Normal)
X-Mailer: Zarafa 7.1.0-36420
Message-Id: <zarafa.5188c9f5.5ae4.71c29aee3f7d91f7@mozart.netitwork.de>
X-ESET-AntiSpam: OK;2;calc;2013-05-07 11:31:33;1305071131338596;ED94
[Message part 1 (text/plain, inline)]
Package: x2goserver
Version: 4.0.0.1
Tag: patch

when a user directory does not exist yet (and is deeper than /home/$USER), the call of x2godbadmin --createuser fails:

create DB user "x2gouser_test"
Can't open password file /home/prod/user/test/.x2go/sqlpass at /usr/sbin/x2godbadmin line 350.

The reason is the mkdir call, which does not recursively create the directory needed. See patch attached.

- mike
[mkdir-fix.patch (text/x-patch, attachment)]

Send a report that this bug log contains spam.


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