Gentoo Archives: gentoo-user

From: wabe <wabenbau@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] executing a command as a nologin user
Date: Tue, 12 Jul 2016 14:18:53
Message-Id: 20160712161742.72f233b0@hal9000.localdomain
In Reply to: [gentoo-user] executing a command as a nologin user by jens w
1 jens w <jw@××××××.eu> wrote:
2
3 > .procmailrc
4 > :0 c
5 > * !^X-Loop: name@×××××××.com
6 > | formail -X "From:" | $HOME/bin/script.sh
7 >
8 > procmail.log
9 > procmail: Executing " formail -X "From:" | $HOME/bin/script.sh
10 >
11 > for incoming mail, a script is executed. logfile has the same entry as
12 > it is in other users. but the script do nothing.
13 >
14 > How executing a command as a nologin user?
15
16 Is script.sh readable and executable for the procmail user?
17
18 Does script.sh contain a definition for a command interpreter
19 (something like #!/bin/sh)?
20
21 --
22 Regards
23 wabe

Replies

Subject Author
Re: [gentoo-user] executing a command as a nologin user jens w <jw@××××××.eu>