From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] executing a command as a nologin user
Date: Tue, 12 Jul 2016 21:54:46 +0100 [thread overview]
Message-ID: <20160712215446.7ec1f404@digimed.co.uk> (raw)
In-Reply-To: <20160712223959.00003246@lxsbbs.eu>
[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]
On Tue, 12 Jul 2016 22:39:59 +0200, 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)?
>
> yes and yes.
> it works for default user. it does not work for nologin user.
> as workaround I forward the mail to a helper-user, and process it there
So you have copies of the same script in each user's $HOME/bin? Why not
call them from a single location? Are you sure the scripts are identical?
Does the procmail log give any clues?
--
Neil Bothwick
I don't know if I can assimilate one more Borg Tagline!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2016-07-12 20:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 1:47 [gentoo-user] executing a command as a nologin user jens w
2016-07-12 14:17 ` wabe
2016-07-12 20:39 ` jens w
2016-07-12 20:54 ` Neil Bothwick [this message]
2016-07-12 21:51 ` jens w
2016-07-12 20:59 ` Alan McKinnon
2016-07-12 21:58 ` jens w
2016-07-13 1:02 ` wabe
2016-07-13 10:31 ` jens w
2016-07-15 13:50 ` Fernando Rodriguez
2016-07-13 11:10 ` Alan McKinnon
2016-07-13 11:29 ` Fernando Rodriguez
2016-07-13 16:42 ` wabe
2016-07-13 16:50 ` Alan McKinnon
2016-07-13 17:05 ` wabe
2016-07-13 20:41 ` Alan McKinnon
2016-07-13 17:41 ` wabe
2016-07-14 21:19 ` Fernando Rodriguez
2016-07-15 1:36 ` [gentoo-user] " Jonathan Callen
2016-07-15 13:45 ` Fernando Rodriguez
2016-07-15 14:20 ` Fernando Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160712215446.7ec1f404@digimed.co.uk \
--to=neil@digimed.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox