From owner-freebsd-questions Tue Mar 14 7:36:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 1D9DD37B63F for ; Tue, 14 Mar 2000 07:36:47 -0800 (PST) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.13 #1) id 12UtN1-0000cv-00; Tue, 14 Mar 2000 17:36:31 +0200 From: Sheldon Hearn To: Bhishan Hemrajani Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DoS attack, Mail errors on new account In-reply-to: Your message of "Tue, 14 Mar 2000 07:25:32 PST." <200003141525.HAA36430@cytosine.dhs.org> Date: Tue, 14 Mar 2000 17:36:31 +0200 Message-ID: <2410.953048191@axl.ops.uunet.co.za> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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