From owner-freebsd-questions Tue Mar 14 15:38:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id 58F0A37B835 for ; Tue, 14 Mar 2000 15:38:39 -0800 (PST) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.9.3/8.9.3) id PAA37444; Tue, 14 Mar 2000 15:38:27 -0800 (PST) (envelope-from bhishan) From: Bhishan Hemrajani Message-Id: <200003142338.PAA37444@cytosine.dhs.org> Subject: Re: DoS attack, Mail errors on new account In-Reply-To: <2410.953048191@axl.ops.uunet.co.za> from Sheldon Hearn at "Mar 14, 2000 05:36:31 pm" To: Sheldon Hearn Date: Tue, 14 Mar 2000 15:38:26 -0800 (PST) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Elm already had those permissions set. Is there anything else I can check? --bhishan > > > On Tue, 14 Mar 2000 07:25:32 PST, Bhishan Hemrajani wrote: > > > I'm pretty new at freebsd, could you help me with what > > you said? > > What do you need help with? Setting up elm to run setgid mail? I don't > use elm, so I can only give you general advice. Other people who know > elm might have better answers for you (in fact, you might look for an > elm-specific mailing list). > > > Also, /var/mail is writeable by the group mail, I think: > > drwxrwxr-x 2 root mail 512 Mar 14 07:24 mail > > Yep, it's group writable. So... > > Become root. Find the elm binary. It's probably something like > /usr/local/bin/elm. Once you've found it, you need to use the chown(8) > utility to change its group ownership: > > chown :mail /usr/local/bin/elm > > This command assumes that the elm binary is /usr/local/bin/elm and that > you have a group ``mail'', which has been present in FreeBSD since > 2.2.7-RELEASE. > > Now you need to use the chmod(8) command to change the permissions on > the binary: > > chmod g+s /usr/local/bin/elm > > That should do the trick unless elm plays silly buggers with GID at run > time, in which case you really will need to talk to some elm people. > > For more information on what the commands above actually do, see the > chown(8) and chmod(8) manual pages. > > Ciao, > Sheldon. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message