From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 16:23:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4DB716A4C0 for ; Fri, 6 Jan 2006 16:23:05 +0000 (GMT) (envelope-from petermatulis@yahoo.ca) Received: from web60012.mail.yahoo.com (web60012.mail.yahoo.com [209.73.178.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 127F743D4C for ; Fri, 6 Jan 2006 16:23:04 +0000 (GMT) (envelope-from petermatulis@yahoo.ca) Received: (qmail 40802 invoked by uid 60001); 6 Jan 2006 16:23:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZxMNpSxl1Mw5ag5sOOEKxAcnY/uDeyg/3+XvF2rMYfogtI83EBBCVyn8juD4des7+h5fvNfrf8ese7VkZw9n7R65ndy5cVneqHDyk4AUNOgFVFWgMBrFE/KgLnOZxpTMz0vZ0v3dw387MhBnHL7t+Om+IlHfKo3okiQjxrrfwGg= ; Message-ID: <20060106162304.40800.qmail@web60012.mail.yahoo.com> Received: from [216.252.84.146] by web60012.mail.yahoo.com via HTTP; Fri, 06 Jan 2006 11:23:04 EST Date: Fri, 6 Jan 2006 11:23:04 -0500 (EST) From: Peter To: JD Arnold , freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Prompt for root password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2006 16:23:05 -0000 --- JD Arnold wrote: > I'm writing a program that needs to write a file and I'd like to have it > ask for the root password and run as root, like many of the system > config > applications do. Do I have to write something special, or is there some > way to tell KDE (or GNOME) to prompt for the root password? Is this what > a "setuid" program is? Here is a start: $ su root -c 'man su' __________________________________________________________ Find your next car at http://autos.yahoo.ca