procmail
[Top] [All Lists]

Re: SHELL= does not correctly override user's login shell

2004-05-26 15:08:58
Dan Hollis wrote:

<> The user's login shell is set to /bin/true so they cannot login to shell, 
<> only fetch email via pop3.
<> 
<> Unfortunately this recipe fails when their login shell is set to 
<> /bin/true. If their login shell is set to /bin/bash then it works 
<> perfectly.

Is /bin/true listed in /etc/shells?  Some mailers will refuse to do
things if the "shell" isn't listed, as will ftp and other services.

<> And setting SHELL=/bin/bash in the recipe does not fix it either!

I am able to repeat the behaviour you get if:

  a) /bin/true isn't in /etc/shells
  b) $SHELL isn't set to "/bin/bash" in .procmailrc

If either of them IS set, it works as expected.

(sendmail 8.12.10, procmail 3.21, heavily modified debian 3.0 linux
 -or-
 postfix 1.1.13, procmail 3.21, solaris 9.0)

Reto
-- 
R A Lichtensteiger              rali(_at_)tifosi(_dot_)com

        "Man was born free; and everywhere is in chains."
         Jean-Jacques Rousseau, The Social Contract

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail