Return-Path: Delivered-To: apmail-community-archive@apache.org Received: (qmail 56699 invoked by uid 500); 2 Jul 2003 15:21:14 -0000 Mailing-List: contact community-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: community@apache.org Delivered-To: mailing list community@apache.org Received: (qmail 56676 invoked from network); 2 Jul 2003 15:21:14 -0000 Received: from mail9.speakeasy.net (HELO mail.speakeasy.net) (216.254.0.209) by daedalus.apache.org with SMTP; 2 Jul 2003 15:21:14 -0000 Received: (qmail 12314 invoked from network); 2 Jul 2003 15:21:16 -0000 Received: from unknown (HELO x180.net) (x180@[66.92.7.102]) (envelope-sender ) by mail9.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 2 Jul 2003 15:21:16 -0000 Date: Wed, 2 Jul 2003 08:21:15 -0700 Subject: Re: WORA Considered Evil ;-) Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) Cc: "'James Developers List'" To: community@apache.org From: James Duncan Davidson In-Reply-To: <3F02F061.6050007@lokitech.com> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wednesday, July 2, 2003, at 07:46 AM, Serge Knystautas wrote: > Santiago Gala wrote: >> I think a good equilibrium point between the "marketing" view of >> security (making sysadms trust) and purist java technical view would >> be to allow James not having to run as root under Unix (to handle >> protected ports like 25, 110, etc.) and then securing the rest of the >> processing through java security declarations. > > Since people here know qmail and sendmail a lot better than I do... > how do they bind to those ports without running as root? By changing their id after they launch as root. setuid. Pretty common thing to do. See man setuid. There's some source code floating around the net to compile a native library for Java that will do a setuid for you... We wrote it back in the Java Web Server days so that we could start up on port 80 and then bounce to nobody (or whatever user you wanted). It's f'ing insane that it's not a "standard" thing in the platform. There's zillions of audio things in there but not a good setuid. Feh. --------------------------------------------------------------------- To unsubscribe, e-mail: community-unsubscribe@apache.org For additional commands, e-mail: community-help@apache.org