Re: lpr notifications thru postfix

2010-05-11 Thread Wietse Venema
Jamal Mubarak: > Well, Mac OS has BSM (Basic Security Module) audit. > > http://www.trustedbsd.org/openbsm.html > http://developer.apple.com/mac/library/DOCUMENTATION/Darwin/Reference/ManPages/man2/auditon.2.html > > Should I mess with auditon? Last time I looked, BSM was not part of Postfix, s

Re: lpr notifications thru postfix

2010-05-10 Thread Jamal Mubarak
On May 10, 2010, at 8:25 AM, Reinaldo de Carvalho wrote: > On Sun, May 9, 2010 at 11:24 PM, Jamal Mubarak wrote: >>> >>> 'owner process' isn't 'owner of lp* files', you need look owner pf >>> cups process with 'ps' command. >> >> jamal% ps -afx | grep cups >>0 11783 1 0 0:00.90 ??

Re: lpr notifications thru postfix

2010-05-10 Thread mouss
Reinaldo de Carvalho a écrit : > On Sun, May 9, 2010 at 11:24 PM, Jamal Mubarak wrote: >>> 'owner process' isn't 'owner of lp* files', you need look owner pf >>> cups process with 'ps' command. >> jamal% ps -afx | grep cups >>0 11783 1 0 0:00.90 ?? 0:00.96 /usr/sbin/cupsd -l >>

Re: lpr notifications thru postfix

2010-05-10 Thread Reinaldo de Carvalho
On Sun, May 9, 2010 at 11:24 PM, Jamal Mubarak wrote: >> >> 'owner process' isn't 'owner of lp* files', you need look owner pf >> cups process with 'ps' command. > > jamal% ps -afx | grep cups >    0 11783     1   0   0:00.90 ??         0:00.96 /usr/sbin/cupsd -l > Who is the process onwer? try '

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 8:31 PM, Reinaldo de Carvalho wrote: > On Sun, May 9, 2010 at 7:19 PM, Jamal Mubarak wrote: >> >> >> Show permissions of /usr/sbin/postdrop and /usr/sbin/sendmail. lpr/lp >> process owner have rights to exec this commands? >> >> Here are my permissions: >> >> -rwxr-sr-x 1

Re: lpr notifications thru postfix

2010-05-09 Thread Reinaldo de Carvalho
On Sun, May 9, 2010 at 7:19 PM, Jamal Mubarak wrote: > > > Show permissions of /usr/sbin/postdrop and /usr/sbin/sendmail. lpr/lp > process owner have rights to exec this commands? > > Here are my permissions: > > -rwxr-sr-x  1 root  _postdrop  484912 Feb 11 01:03 /usr/sbin/postdrop > -rwxr-xr-x  1

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 7:35 PM, Wietse Venema wrote: > execve() fails with error number 1. You can look that number up in > /usr/include/sys/errno.h (or whatever the pathname is on MacOS). > But, MacOS is a descendant of FreeBSD, and on my machine: > > #define EPERM 1 /* Oper

Re: lpr notifications thru postfix

2010-05-09 Thread Wietse Venema
Jamal Mubarak: > 12181/0x403d0: execve(0x100112280, 0x100112380, 0x100200010) = -1 > Err#1 > 12181/0x403d0: stat64("/usr/sbin/postdrop\0", 0x7FFF5FBFF100, 0x2) > = 0 0 > 12181/0x403d0: write(0x2, "sendmail: fatal: execvp /usr/sbin/postdrop: > Operation not permitted\n\0",

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 6:46 PM, Wietse Venema wrote: > The problem does not happen in the Sendmail process that you run, > but in a CHILD process of that Sendmail process. > > Therefore, you need to specify an option to trace CHILD processes. > > The examples above use "-d" or "-f" to achieve tha

Re: lpr notifications thru postfix

2010-05-09 Thread Wietse Venema
Jamal Mubarak: > > On May 9, 2010, at 5:56 PM, Wietse Venema wrote: > > > This involves getting a trace of system calls (arguments and results) > > when the error happens. > > > > Some systems capture a system call trace with commands like: > > > >ktrace -f /file/name -d command > >stra

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 5:56 PM, Wietse Venema wrote: > This involves getting a trace of system calls (arguments and results) > when the error happens. > > Some systems capture a system call trace with commands like: > >ktrace -f /file/name -d command >strace -o /file/name -f command >tr

Re: lpr notifications thru postfix

2010-05-09 Thread Wietse Venema
Jamal Mubarak: > > Ask Apple. Postfix does not change spontaneously. > > I filed a bug report with Apple with number 7477314. They asked > me for some details about my system, including permissions. Then > nothing. > > I have tried to post to a few forums, including the CUPS forum, > but no luck

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 12:18 PM, Reinaldo de Carvalho wrote: > On Sat, May 8, 2010 at 7:51 PM, Jamal Mubarak wrote: >> I have postfix installed and configured on my Mac OS 10.6.3 machines. It >> works correctly because the unix mail program works fine and sendmail >> interface can send emails as

Re: lpr notifications thru postfix

2010-05-09 Thread Reinaldo de Carvalho
On Sat, May 8, 2010 at 7:51 PM, Jamal Mubarak wrote: > I have postfix installed and configured on my Mac OS 10.6.3 machines.  It > works correctly because the unix mail program works fine and sendmail > interface can send emails as well.  However, I encounter this strange > problem.  The printi

Re: lpr notifications thru postfix

2010-05-09 Thread Wietse Venema
Jamal Mubarak: > I have postfix installed and configured on my Mac OS 10.6.3 > machines. It works correctly because the unix mail program works > fine and sendmail interface can send emails as well. However, I > encounter this strange problem. The printing commands, lpr and > lp, have the -m swi

lpr notifications thru postfix

2010-05-08 Thread Jamal Mubarak
I have postfix installed and configured on my Mac OS 10.6.3 machines. It works correctly because the unix mail program works fine and sendmail interface can send emails as well. However, I encounter this strange problem. The printing commands, lpr and lp, have the -m switch which sends an e-m