From owner-freebsd-stable Wed Sep 15 0:16:37 1999 Delivered-To: freebsd-stable@freebsd.org Received: from rnocserv.urc.ac.ru (rnocserv.urc.ac.ru [193.233.85.2]) by hub.freebsd.org (Postfix) with ESMTP id 6691114DD2 for ; Wed, 15 Sep 1999 00:14:51 -0700 (PDT) (envelope-from anton@urc.ac.ru) Received: from urc.ac.ru (belle.urc.ac.ru [193.233.85.10]) by rnocserv.urc.ac.ru (8.9.3/8.9.3) with ESMTP id NAA75627 for ; Wed, 15 Sep 1999 13:14:38 +0600 (ESS) (envelope-from anton@urc.ac.ru) Message-ID: <37DF475C.1682F7A3@urc.ac.ru> Date: Wed, 15 Sep 1999 13:14:36 +0600 From: Anton Voronin Organization: URC FREEnet X-Mailer: Mozilla 4.5 [ru] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: Russian, ru, en MIME-Version: 1.0 To: stable@freebsd.org Subject: mail.local setuid Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, does anyone have an idea why /usr/libexec/mail.local is made setuid? It is now impossible to control mailbox quotas because it is always run as root. It is possible to invoke it as root using 'o' flag in mailer definition, if it is so needed. I removed setuid bit from it and setreuid() calls from the source, and set 'o' flag in sendmail configuration - it works fine now and doesn't ignore disk quotas. -- Anton Voronin | Ural Regional Center of FREEnet, anton@urc.ac.ru | Southern Ural University, Chelyabinsk, Russia http://www.urc.ac.ru/~anton | Programmer & System Administrator To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message