From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D6D84138306 for ; Wed, 13 Jul 2016 10:31:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BF9721C07D; Wed, 13 Jul 2016 10:31:41 +0000 (UTC) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE632E0BCF for ; Wed, 13 Jul 2016 10:31:39 +0000 (UTC) Received: from [95.33.76.200] (helo=localhost) by smtprelay02.ispgateway.de with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1bNHS5-0002jm-VE for gentoo-user@lists.gentoo.org; Wed, 13 Jul 2016 12:31:38 +0200 Date: Wed, 13 Jul 2016 12:31:40 +0200 From: jens w To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] executing a command as a nologin user Message-ID: <20160713123140.00003175@lxsbbs.eu> In-Reply-To: <20160713030250.143f9065@hal9000.localdomain> References: <20160712034702.00000f6c@lxsbbs.eu> <20160712161742.72f233b0@hal9000.localdomain> <20160712223959.00003246@lxsbbs.eu> <57855A24.8030906@gmail.com> <20160712235831.00006500@lxsbbs.eu> <20160713030250.143f9065@hal9000.localdomain> Organization: LxSBBS X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; i686-w64-mingw32) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Df-Sender: andAbHhzYmJzLmV1 X-Archives-Salt: 55011a64-bb83-4b40-b425-48ec8cceed3a X-Archives-Hash: 3a9219970277a275c0db1658d9d5cf10 Am Wed, 13 Jul 2016 03:02:50 +0200 schrieb wabe : > > Are you sure that the HOME envar is defined for the "nologin-user"? # getent passwd user user:x:1018:1018::'/home/user:/sbin/nologin # su -s /bin/bash user -c echo $HOME I change $HOME in /home/user, but the script not executed. > Is there a existing home directory defined in /etc/passwd for this > user? yes, and the mail-delivery to /home/user/.maildir ist ok, also the access from roundcube is ok.