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 9D2031382FE for ; Tue, 12 Jul 2016 14:18:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AB9421C074; Tue, 12 Jul 2016 14:18:39 +0000 (UTC) Received: from mail.web-xs.org (mail.web-xs.org [148.251.4.204]) (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 E200821C012 for ; Tue, 12 Jul 2016 14:18:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.web-xs.org (Postfix) with ESMTP id E26956EC4C60 for ; Tue, 12 Jul 2016 16:18:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.web-xs.org Received: from mail.web-xs.org ([127.0.0.1]) by localhost (mail.web-xs.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qgNFzNiefTYZ for ; Tue, 12 Jul 2016 16:18:34 +0200 (CEST) Received: from server-1.localdomain (p54A71379.dip0.t-ipconnect.de [84.167.19.121]) (Authenticated sender: lukas@der-erste-sinn.de) by mail.web-xs.org (Postfix) with ESMTPA id 4F5716EC4B1E for ; Tue, 12 Jul 2016 16:18:33 +0200 (CEST) Received: from hal9000.localdomain (hal.localdomain [192.168.0.2]) by server-1.localdomain (Postfix) with ESMTP id A0D92442 for ; Tue, 12 Jul 2016 16:18:33 +0200 (CEST) Date: Tue, 12 Jul 2016 16:17:42 +0200 From: wabe To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] executing a command as a nologin user Message-ID: <20160712161742.72f233b0@hal9000.localdomain> In-Reply-To: <20160712034702.00000f6c@lxsbbs.eu> References: <20160712034702.00000f6c@lxsbbs.eu> 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-Archives-Salt: b329701d-cf69-42cc-8241-8c49da25c61f X-Archives-Hash: fe878f3629010eac27de0595cffd383b jens w wrote: > .procmailrc > :0 c > * !^X-Loop: name@example.com > | formail -X "From:" | $HOME/bin/script.sh > > procmail.log > procmail: Executing " formail -X "From:" | $HOME/bin/script.sh > > for incoming mail, a script is executed. logfile has the same entry as > it is in other users. but the script do nothing. > > How executing a command as a nologin user? Is script.sh readable and executable for the procmail user? Does script.sh contain a definition for a command interpreter (something like #!/bin/sh)? -- Regards wabe