From owner-freebsd-questions@FreeBSD.ORG Fri Nov 30 20:28:05 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A245A16A419 for ; Fri, 30 Nov 2007 20:28:05 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 8C29C13C46A for ; Fri, 30 Nov 2007 20:28:05 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from [192.168.2.102] (cpe-24-175-90-48.tx.res.rr.com [24.175.90.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 46479654F2 for ; Fri, 30 Nov 2007 14:28:04 -0600 (CST) Date: Fri, 30 Nov 2007 14:28:03 -0600 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: In-Reply-To: <474FD863.2060004@gmail.com> References: <474FD863.2060004@gmail.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: looking for suggestions: multiple users on the same desktop 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, 30 Nov 2007 20:28:05 -0000 --On November 30, 2007 4:31:15 AM -0500 "Aryeh M. Friedman" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have several "sub" accounts (for specialized purposes not really a > part of an other account) which I do my work basically I have: > > aryeh -- my personal account > web -- maintain my web site > dev -- development/testing of software > dep -- seperation of development and production code > > I almost always login into aryeh (xfce via xdm). Both web and dev > require the use of variuous X applications but I don't want to logout > and login back in and/or have to invoke the app from the cmd line > (i.e. xhost +; setenv DISPLAY :0; app cmd line)... I am looking for a > way to make it so I can launch apps from a desktop panel and/or icon > on the desktop and make it ask what user to run it under (or somehow > or another make it aware that not everything is to be ruin as > "aryeh")... ideas? > Make the commandline for executing the app (in the properties of the icon) "su - web /usr/local/bin/app"? I would think, when you launch it, you'd be prompted for the password and then the app would run. At least I've used that technique with sudo to run gui apps as root. Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/