From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6659376390151864320 X-Received: by 2002:a50:aa70:: with SMTP id p45mr1969277edc.6.1551094724365; Mon, 25 Feb 2019 03:38:44 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:348d:: with SMTP id g13ls1260710ejb.3.gmail; Mon, 25 Feb 2019 03:38:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IYwVgCOY8yuS1G9dI3gpUc2PA3SwsyCHt1MqjTvu/0J00wXT3Lv/R35e1EbJcoDF3d5OYLB X-Received: by 2002:a17:906:2346:: with SMTP id m6mr1769699eja.15.1551094723839; Mon, 25 Feb 2019 03:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551094723; cv=none; d=google.com; s=arc-20160816; b=m/xn1dKB8xB+5gpXzg1eNzgJ50axLaAs606cryaU7HINCURRBqyvO2pOnrhtHC/e9K yXyObdJwZ0it6kjK14P4364zds26T2r0VG/4qpz79jLh3bBjR96jQq0jGJ1/W3eJtwnU pNvb2OlgPZVf+85hrqzUN5yY3XoIVBGIedTiEV1m+lR2pLRkbEuW3OpAvbxIpeWyekwl SLbT5HmmhqH2iMbnKjD8xekbZxYN5PFEJZVXHvEVsM7jRmzxS2pRphOIWQ8U+ufLjnhi UevZyQkW3FmDZtipzk4i56vK2UonBpFcjAImFWAkxdRFqbLLYqCKrwCcy/ACSOO01jm8 XyRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=6fvf2MXBWraCzQTDtPtW6+OCcohcZiVfW/Y7fLYAhpk=; b=vIqppRoUa7ibQU0LppoOXL9w7Msap5iwTLCBxEjMNpBBX1Arn22L7R4fr57PeD0Sj5 WTj99ljB0foWqcwhpeddQ0EcAmwye28TfmB29bo+MWTWJ6K4v5MYP8Z5PIFB15TywwAG 8nS0YXyyQblpXS4qONxlu9Va4F0yjDHnhkYuYjGaT7pTymAnsdLGApOTwcDfaeK3muMt H/7vN65I/62w7xQehKh0E2r0SI7U4QDPpti3IOGH8W6G1pDWJDBWBfXrmGlYD+dCTcEF NWVYjxtZHEqz5J59LMScmNwohWHnJDYP87uOdFOSezOVqx9wpaTA56PPfTTUShc9xI8w F9YQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id gu13si512360ejb.0.2019.02.25.03.38.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Feb 2019 03:38:43 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x1PBch8Q007292 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Feb 2019 12:38:43 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.68.188]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x1PBcZBY017521; Mon, 25 Feb 2019 12:38:35 +0100 Date: Mon, 25 Feb 2019 12:38:34 +0100 From: Henning Schild To: "[ext] Adler, Michael" Cc: "isar-users@googlegroups.com" , "claudius.heine.ext@siemens.com" , "Claudius Heine" Subject: Re: [PATCH] added 'isar-cfg-userpw' package Message-ID: <20190225123834.41fefdab@md1za8fc.ad001.siemens.net> In-Reply-To: <20190225113406.373e0ae9@md1za8fc.ad001.siemens.net> References: <20190218162113.8538-1-claudius.heine.ext@siemens.com> <20190225101852.6m6uqbaq24upaovp@demogorgon> <20190225113406.373e0ae9@md1za8fc.ad001.siemens.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: 9jA0hlL1b+Mf One workaround for you would be to have your user in a user-group with a gid that it not yet taken in a fresh debian container, like most other distros default to today. Henning Am Mon, 25 Feb 2019 11:34:06 +0100 schrieb "[ext] Henning Schild" : > Hi, > > this is not related to the package. But to any package that goes > through common.sh and checks the ids. > > https://groups.google.com/forum/#!searchin/isar-users/Align$20UID$20and$20GID$20%7Csort:date/isar-users/S5W8D3X4Lkg/n7HbASWnAwAJ > > The result of this discussion was that we probably need to align the > ids and hope we never get in trouble with the host. In this case we > do! > > The alignment should be changed. If the group does exist (100) join > the user and do not try and create a group. The check should be > changed to make sure the gid is the main group gid, instead of 1000. > > Henning > > Am Mon, 25 Feb 2019 10:18:52 +0000 > schrieb "[ext] Adler, Michael" : > > > Just a heads-up, I'm having some issues with this package: > > > > ==============================SNIP > > START======================================= NOTE: Executing > > RunQueue Tasks ERROR: mc:qemuamd64-stretch:isar-cfg-rootpw-1.0-r0 > > do_build: Function failed: do_build (log file is located > > at /work/build/tmp/work/debian-stretch-amd64/isar-cfg-rootpw-1.0-r0/temp/log.do_build.179) > > ERROR: Logfile of failure stored > > in: /work/build/tmp/work/debian-stretch-amd64/isar-cfg-rootpw-1.0-r0/temp/log.do_build.179 > > Log data follows: | DEBUG: Executing shell function do_build | This > > script can only be run as root:root or builder:builder! | (Currently > > running as builder(1000):users(100)) | WARNING: exit code 1 from a > > shell command. | ERROR: Function failed: do_build (log file is > > located > > at /work/build/tmp/work/debian-stretch-amd64/isar-cfg-rootpw-1.0-r0/temp/log.do_build.179) > > ERROR: Task > > (multiconfig:qemuamd64-stretch:/work/isar/meta/recipes-support/isar-cfg-rootpw/isar-cfg-rootpw.bb:do_build) > > failed with exit code '1' ==============================SNIP END > > ======================================= > > > > My setup: > > > > - NixOS (most notably: uid=1000, gid=100, uid != gid) > > - Isar runs inside a Docker image (kasproject/kas-isar) > > > > However I could imagine that this also breaks in native mode as soon > > as uid != gid (though I will not attempt to run Isar natively). Any > > ideas? > > > > Kind regards, > > Michael > > >