From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 14:36:22 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 3AD1F16A41F for ; Fri, 6 Jan 2006 14:36:22 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 765CF43D46 for ; Fri, 6 Jan 2006 14:36:20 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EushJ-0000Ct-Df for freebsd-questions@freebsd.org; Fri, 06 Jan 2006 15:36:05 +0100 Received: from c-24-147-87-49.hsd1.ma.comcast.net ([24.147.87.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jan 2006 15:36:04 +0100 Received: from jdarnold by c-24-147-87-49.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jan 2006 15:36:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: JD Arnold Date: Fri, 06 Jan 2006 09:36:05 -0500 Organization: Amazing Developments Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-24-147-87-49.hsd1.ma.comcast.net User-Agent: Thunderbird 1.5 (Windows/20051201) Sender: news Subject: 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 14:36:22 -0000 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? -- Jonathan Arnold (mailto:jdarnold@buddydog.org) Daemon Dancing in the Dark, a FreeBSD weblog: http://freebsd.amazingdev.com/blog/ UNIX is user-friendly. It's just a bit picky about who its friends are.