Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 38705

Summary: sendmail must have root.smmsp 2555 perms
Product: Gentoo Linux Reporter: Andrea Barisani (RETIRED) <lcars>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: critical CC: David.Huff, gentoo, merlin, robert.spam.me.senseless, seemant
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrea Barisani (RETIRED) gentoo-dev 2004-01-19 05:59:16 UTC
I'm using sendmail-8.12.10 (latest stable release) and sendmail perms are:

-r-xr-xr-x    1 root     smmsp      661552 Jan 19 14:46 /usr/sbin/sendmail

but they should be:

-r-xr-sr-x    1 root     smmsp      661584 Jan 19 14:16 /usr/sbin/sendmail

In fact without this perms when sendinf local mail (using msp and submit.cf) we get:

sendmail[5717]: NOQUEUE: SYSERR(lcars): can not chdir(/var/spool/clientmqueue/): Permission denied

This was the result of a reemerge of the package (due to openssl upgrades), I don't remember setting manually the sgid bit last time sendmail was installed (this same
version) so this is really odd. Maybe sgid bit was lost during the 'install' phase of the ebuild???

From 'ebuild /usr/portage/net-mail/sendmail/sendmail-8.12.10.ebuild install' I can see
the following line:

make[1]: Leaving directory`/var/tmp/portage/sendmail-8.12.10/work/sendmail-8.12.10/cf/cf'
install -c -o root -g root -m 2555 sendmail /var/tmp/portage/sendmail-8.12.10/image//usr/sbin

But:

# ls -l /var/tmp/portage/sendmail-8.12.10/image/usr/sbin/sendmail
-r-xr-xr-x    1 root     smmsp      661552 Jan 19 14:46  ..../usr/sbin/sendmail

Am I missing something?

thx



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 David D. Huff Jr. 2004-02-13 13:26:27 UTC
Thanks, the chmod 2555 helped me. It's still happening as of 2004/02/13. I had to re-install because sSMTP just installed over sendmail on several of my servers.
Comment 2 Cory Visi (RETIRED) gentoo-dev 2004-06-14 15:49:30 UTC
This is fixed in sendmail-8.12.11-r1 and up.

This is also somewhat related to Bug 37305.

If we could roll-up all these sendmail fixes and release a stable 8.12.11, a lot of people would be much happier.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-14 21:55:54 UTC
*** Bug 53358 has been marked as a duplicate of this bug. ***
Comment 4 Andrea Barisani (RETIRED) gentoo-dev 2004-07-28 14:36:42 UTC
sendmail-8.12.11-r3 has been stable from some time so this sould be fixed.  closing