From owner-freebsd-security Fri Mar 16 10:34:41 2001 Delivered-To: freebsd-security@freebsd.org Received: from mr200.netcologne.de (mr200.netcologne.de [194.8.194.109]) by hub.freebsd.org (Postfix) with ESMTP id 3D08E37B719 for ; Fri, 16 Mar 2001 10:34:39 -0800 (PST) (envelope-from pherman@frenchfries.net) Received: from husten.security.at12.de (dial-213-168-73-160.netcologne.de [213.168.73.160]) by mr200.netcologne.de (Mirapoint) with ESMTP id ACP70358; Fri, 16 Mar 2001 19:34:36 +0100 (CET) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by husten.security.at12.de (8.11.3/8.11.2) with ESMTP id f2GIYMY15665; Fri, 16 Mar 2001 19:34:22 +0100 (CET) (envelope-from pherman@frenchfries.net) Date: Fri, 16 Mar 2001 19:34:22 +0100 (CET) From: Paul Herman To: Anil Jangity Cc: Subject: Re: Multiple vendors FTP denial of service In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 16 Mar 2001, Anil Jangity wrote: > FTPD is run as root (atleast on my machine). I don't want to limit root > resources, since I am not sure exactly what a good ball park figure for > root would be... The resources are set for the user who logged in through ftp. ftpd (root) does a seteuid() to the user and then sets the resource limits. So, unless you login as root over ftp, you just set limits on the user. To bad a setusercontext() call couldn't be easily implimented inside of set[e]uid() (it's in -lutil not -lc). I see too many FreeBSD admins that believe that their proftpds and qmails are protected by the limits set in /etc/login.conf. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message