Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2006 11:23:04 -0500 (EST)
From:      Peter <petermatulis@yahoo.ca>
To:        JD Arnold <jdarnold@buddydog.org>, freebsd-questions@freebsd.org
Subject:   Re: Prompt for root password
Message-ID:  <20060106162304.40800.qmail@web60012.mail.yahoo.com>
In-Reply-To: <dplv84$pnt$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--- JD Arnold <jdarnold@buddydog.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060106162304.40800.qmail>