On Feb 12, 9:29, Sergei Senin wrote:
Subject: Re:Question about procmail on HPUX with HP-Vue
On Sat, 10 Feb 1996, Phil Calvin wrote:
I send this last night, and when I arrived at school today, I realized
that procmail had reset the permissions on my /usr/mail/calvin file,
which caused all my mail to bounce with "no permission to write to file".
I had the same problem (permission reset by procmail). Funny enough, when I
changed permission on the /usr/mail/"my name here" :-) file to -rwxrw-,
procmail stopped doing this.
Yup; it's documented in the MISCELLANEOUS of the procmail(1) man page:
If /var/mail/$LOGNAME already is a valid mailbox, but has
got too loose permissions on it, procmail will correct this.
To prevent procmail from doing this make sure the u+x bit is
set.
Otherwise, you might notice a syslog message like:
procmail: Enforcing stricter permissions on "/var/mail/sjk"
when it chmod's the file to 600. As you've discovered, this is
inconsistent with the SYSV (Solaris 2 anyway) default mailbox
protection of 660, gid=6 (mail). I think that's an OS-dependent
bug, with the `chmod u+x ...' as the workaround.
-sjk
--
Scott J. Kramer 264A W. California Avenue
UNIX Software Consultant Sunnyvale, CA 94086, USA
<sjk(_at_)lux(_dot_)com> +1.408.736.9242