Well don't I feel like the perfect fool? My original question had to do with
a segv problem trying to use sendmail as any user other than root:
( /usr/lib/sendmail -n username < /dev/null ) As a couple people pointed
out I had permission problems. The answer was right there in the truss output:
open("/etc/aliases.pag", O_RDWR) Err#13 EACCES
This caused a number of people to tell me "ugo+r /etc/alias*", but read permissions
were already set for all. So only one more possible permission gotcha (correctly
pointed out by Claus Assmann <firstname.lastname@example.org> who said:
>Sounds like a permission problem... root works, user not...
>> open("/etc/aliases.pag", O_RDWR) Err#13 EACCES
>Ah, it is...
>#define EACCES 13 /* Permission denied */
>-r-sr-x--x 1 root bin 540672 Mar 6 09:16 /usr/lib/sendmail*
>You miss that?
Why, yes, as matter of fact, I did, Claus. ;-) Problem corrected.
(Though I guess I am still curious as to why the aliases db file needs
to be opened read/write (O_RDWR) )
Thanks to all who offered answers:
Casper Dik <casper@holland.Sun.COM>
Gerhard den Hollander <email@example.com>
Claus Assmann <firstname.lastname@example.org>
Dave Zavatson <email@example.com>
your help was much appreciated!
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:56 CDT