Re: [gentoo-user] executing a command as a nologin user

2016-07-15 Thread Fernando Rodriguez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/13/2016 06:31 AM, jens w wrote: > 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

Re: [gentoo-user] executing a command as a nologin user

2016-07-14 Thread Fernando Rodriguez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/13/2016 01:41 PM, wabe wrote: > Fernando Rodriguez wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> On 07/13/2016 07:10 AM, Alan McKinnon wrote: >>> On 12/07/2016 03:47, jens w wrote: .procmailrc :0 c * !^

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread Alan McKinnon
On 13/07/2016 19:05, wabe wrote: Alan McKinnon wrote: On 13/07/2016 18:42, wabe wrote: Fernando Rodriguez wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/13/2016 07:10 AM, Alan McKinnon wrote: On 12/07/2016 03:47, jens w wrote: .procmailrc :0 c * !^X-Loop: n...@example.com

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread wabe
Fernando Rodriguez wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 07/13/2016 07:10 AM, Alan McKinnon wrote: > > On 12/07/2016 03:47, jens w wrote: > >> .procmailrc > >> :0 c > >> * !^X-Loop: n...@example.com > >> | formail -X "From:" | $HOME/bin/script.sh > >> > >> procm

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread wabe
Alan McKinnon wrote: > On 13/07/2016 18:42, wabe wrote: > > Fernando Rodriguez wrote: > > > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA256 > >> > >> On 07/13/2016 07:10 AM, Alan McKinnon wrote: > >>> On 12/07/2016 03:47, jens w wrote: > .procmailrc > :0 c > * !^X-Lo

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread Alan McKinnon
On 13/07/2016 18:42, wabe wrote: Fernando Rodriguez wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/13/2016 07:10 AM, Alan McKinnon wrote: On 12/07/2016 03:47, jens w wrote: .procmailrc :0 c * !^X-Loop: n...@example.com | formail -X "From:" | $HOME/bin/script.sh procmail.log p

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread wabe
Fernando Rodriguez wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 07/13/2016 07:10 AM, Alan McKinnon wrote: > > On 12/07/2016 03:47, jens w wrote: > >> .procmailrc > >> :0 c > >> * !^X-Loop: n...@example.com > >> | formail -X "From:" | $HOME/bin/script.sh > >> > >> procm

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread Fernando Rodriguez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/13/2016 07:10 AM, Alan McKinnon wrote: > On 12/07/2016 03:47, jens w wrote: >> .procmailrc >> :0 c >> * !^X-Loop: n...@example.com >> | formail -X "From:" | $HOME/bin/script.sh >> >> procmail.log >> procmail: Executing " formail -X "From:" | $H

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread Alan McKinnon
On 12/07/2016 03:47, jens w wrote: .procmailrc :0 c * !^X-Loop: n...@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. bu

Re: [gentoo-user] executing a command as a nologin user

2016-07-13 Thread jens w
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

Re: [gentoo-user] executing a command as a nologin user

2016-07-12 Thread wabe
jens w wrote: > Am Tue, 12 Jul 2016 22:59:16 +0200 > schrieb Alan McKinnon : > > > On 12/07/2016 22:39, jens w wrote: > > > Am Tue, 12 Jul 2016 16:17:42 +0200 > > > schrieb wabe : > > > > > >> jens w wrote: > > >> > > >>> .procmailrc > > >>> :0 c > > >>> * !^X-Loop: n...@example.com

Re: [gentoo-user] executing a command as a nologin user

2016-07-12 Thread jens w
Am Tue, 12 Jul 2016 22:59:16 +0200 schrieb Alan McKinnon : > On 12/07/2016 22:39, jens w wrote: > > Am Tue, 12 Jul 2016 16:17:42 +0200 > > schrieb wabe : > > > >> jens w wrote: > >> > >>> .procmailrc > >>> :0 c > >>> * !^X-Loop: n...@example.com > >>> | formail -X "From:" | $HOME/bin/script.s

Re: [gentoo-user] executing a command as a nologin user

2016-07-12 Thread jens w
Am Tue, 12 Jul 2016 21:54:46 +0100 schrieb Neil Bothwick : > On Tue, 12 Jul 2016 22:39:59 +0200, jens w wrote: > > > > > .procmailrc > > > > :0 c > > > > * !^X-Loop: n...@example.com > > > > | formail -X "From:" | $HOME/bin/script.sh > > > > > > > > procmail.log > > > > procmail: Executing

Re: [gentoo-user] executing a command as a nologin user

2016-07-12 Thread Alan McKinnon
On 12/07/2016 22:39, jens w wrote: Am Tue, 12 Jul 2016 16:17:42 +0200 schrieb wabe : jens w wrote: .procmailrc :0 c * !^X-Loop: n...@example.com | formail -X "From:" | $HOME/bin/script.sh procmail.log procmail: Executing " formail -X "From:" | $HOME/bin/script.sh for incoming mail, a scrip

Re: [gentoo-user] executing a command as a nologin user

2016-07-12 Thread Neil Bothwick
On Tue, 12 Jul 2016 22:39:59 +0200, jens w wrote: > > > .procmailrc > > > :0 c > > > * !^X-Loop: n...@example.com > > > | formail -X "From:" | $HOME/bin/script.sh > > > > > > procmail.log > > > procmail: Executing " formail -X "From:" | $HOME/bin/script.sh > > > > > > for incoming mail, a

Re: [gentoo-user] executing a command as a nologin user

2016-07-12 Thread jens w
Am Tue, 12 Jul 2016 16:17:42 +0200 schrieb wabe : > jens w wrote: > > > .procmailrc > > :0 c > > * !^X-Loop: n...@example.com > > | formail -X "From:" | $HOME/bin/script.sh > > > > procmail.log > > procmail: Executing " formail -X "From:" | $HOME/bin/script.sh > > > > for incoming mail, a sc

Re: [gentoo-user] executing a command as a nologin user

2016-07-12 Thread wabe
jens w wrote: > .procmailrc > :0 c > * !^X-Loop: n...@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. b

[gentoo-user] executing a command as a nologin user

2016-07-11 Thread jens w
.procmailrc :0 c * !^X-Loop: n...@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 executi