Ed noticed that the installed /usr/sbin/smtpctl has group 'root' instead
of the queue group.

Since Slackware uses queue group 'smtpq', I patched the install
script like this:

chgrp smtpq usr/sbin/smtpctl
chmod 2555  usr/sbin/smtpctl

One way of fixing it for all distributions might be to change the
mk/smtpctl/Makefile.am  file:

----------------------------------------------------------------
--- opensmtpd-6.0.3p1/mk/smtpctl/Makefile.am.orig       2018-01-10
05:06:40.000000000 -0800
+++ opensmtpd-6.0.3p1/mk/smtpctl/Makefile.am    2018-03-05
03:24:48.623970244 -0800
@@ -76,7 +76,8 @@

 install-exec-hook: $(CONFIGFILES) $(MANPAGES)
        $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)8
-       chmod 2555 $(DESTDIR)$(sbindir)/smtpctl
+       chgrp $(SMTPD_QUE_GROUP) $(DESTDIR)$(sbindir)/smtpctl
+       chmod 2555               $(DESTDIR)$(sbindir)/smtpctl
        $(INSTALL) -m 644 smtpctl.8.out
$(DESTDIR)$(mandir)/$(mansubdir)8/smtpctl.8
        $(INSTALL) -m 644 sendmail.8.out
$(DESTDIR)$(mandir)/$(mansubdir)8/sendmail.8
        $(INSTALL) -m 644 makemap.8.out
$(DESTDIR)$(mandir)/$(mansubdir)8/makemap.8

----------------------------------------------------------------

I have not tested the above patch...


Richard Narron


-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to