From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kt1lw-0004bB-8N for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:06:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kt1lu-0004Z8-Ny for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:06:47 -0400 Received: from [199.232.76.173] (port=37910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt1lu-0004Yz-7Y for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:06:46 -0400 Received: from smtp6-g19.free.fr ([212.27.42.36]:47280) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kt1lu-0001C0-4i for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:06:46 -0400 Received: from smtp6-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp6-g19.free.fr (Postfix) with ESMTP id 319721971F for ; Thu, 23 Oct 2008 17:06:44 +0200 (CEST) Received: from laptop (vaf26-2-82-244-111-82.fbx.proxad.net [82.244.111.82]) by smtp6-g19.free.fr (Postfix) with ESMTP id 1F961172E3 for ; Thu, 23 Oct 2008 17:06:38 +0200 (CEST) In-Reply-To: <490074BD.6010403@redhat.com> Subject: Re: [Qemu-devel] Re: VNC Password From: "=?windows-1252?q?Fran=E7ois?= Revol" Date: Thu, 23 Oct 2008 17:10:10 +0200 CEST Message-Id: <1345721627-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > Volkan YAZICI wrote: > > On Thu, 23 Oct 2008, Gerd Hoffmann writes: > >> > >> You might want to check out http://dl.bytesex.org/releases/qemu-gtk/ > > > > >> then. It can deal with "-vnc $host:$display,password" just fine. > > > Sets > >> a random password via monitor, then connects to the vnc server > > > using the > >> password just set. Password is never stored anywhere, it sets a > > > new > >> random one each time you start the ui to see the screen of your > > > VM. > >> > > > > That's not something I'd want to use while I'm trying to get rid of > > any > > kind of X dependencies. > > qemu-gtk can handle that remotely too. monitor must listen on tcp > then > though, which you might not want to do for security reasons ... > > Back to the original question: read password from file isn't > implemented > as far I know. When I want to specify passwords on command line I usually do something like: read p qemu ...,$p That makes sure it's not stored in the history. You can as well use read p < afile If you really don't want to have the string as part of the environment you can try command substitution... qemu ...,$(cat afile) Alike, the real password won't be stored inthe history. man bash should help :) Fran=E7ois.