Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756295AbXJBLYS (ORCPT ); Tue, 2 Oct 2007 07:24:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753179AbXJBLXv (ORCPT ); Tue, 2 Oct 2007 07:23:51 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:45936 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbXJBLXX (ORCPT ); Tue, 2 Oct 2007 07:23:23 -0400 Date: Tue, 2 Oct 2007 13:23:22 +0200 (CEST) From: Jan Engelhardt To: Giuliano Gagliardi cc: linux-kernel@vger.kernel.org Subject: Re: One process with multiple user ids. In-Reply-To: <200710021256.08469.gogi-k@gogi.tv> Message-ID: References: <200710021256.08469.gogi-k@gogi.tv> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 671 Lines: 17 On Oct 2 2007 12:56, Giuliano Gagliardi wrote: > >I have a server that has to switch to different user ids, but because it does >other complex things, I would rather not have it run as root. I only need the >server to be able to switch to certain pre-defined user ids. All you need is CAP_SETUID. Also see man setresuid, where you could, I think, use saved_uid=0 if you do not like to use real_uid=0 effective_uid=non-0. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/