Gentoo Archives: gentoo-user

From: jens w <jw@××××××.eu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] executing a command as a nologin user
Date: Tue, 12 Jul 2016 20:40:09
Message-Id: 20160712223959.00003246@lxsbbs.eu
In Reply to: Re: [gentoo-user] executing a command as a nologin user by wabe
1 Am Tue, 12 Jul 2016 16:17:42 +0200
2 schrieb wabe <wabenbau@×××××.com>:
3
4 > jens w <jw@××××××.eu> wrote:
5 >
6 > > .procmailrc
7 > > :0 c
8 > > * !^X-Loop: name@×××××××.com
9 > > | formail -X "From:" | $HOME/bin/script.sh
10 > >
11 > > procmail.log
12 > > procmail: Executing " formail -X "From:" | $HOME/bin/script.sh
13 > >
14 > > for incoming mail, a script is executed. logfile has the same entry
15 > > as it is in other users. but the script do nothing.
16 > >
17 > > How executing a command as a nologin user?
18 >
19 > Is script.sh readable and executable for the procmail user?
20 >
21 > Does script.sh contain a definition for a command interpreter
22 > (something like #!/bin/sh)?
23
24 yes and yes.
25 it works for default user. it does not work for nologin user.
26 as workaround I forward the mail to a helper-user, and process it there

Replies

Subject Author
Re: [gentoo-user] executing a command as a nologin user Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] executing a command as a nologin user Alan McKinnon <alan.mckinnon@×××××.com>