From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kt2OA-0007Cu-0e for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:46:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kt2O6-0007CK-Ee for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:46:16 -0400 Received: from [199.232.76.173] (port=43702 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt2O6-0007CH-7Z for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:46:14 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:34960) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kt2O5-0004XF-UJ for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:46:14 -0400 Received: from localhost (localhost [127.0.0.1]) by ecfrec.frec.bull.fr (Postfix) with ESMTP id 7DAB619D950 for ; Thu, 23 Oct 2008 17:45:34 +0200 (CEST) Received: from ecfrec.frec.bull.fr ([127.0.0.1]) by localhost (ecfrec.frec.bull.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01533-04 for ; Thu, 23 Oct 2008 17:45:31 +0200 (CEST) Received: from cyclope.frec.bull.fr (cyclope.frec.bull.fr [129.183.4.9]) by ecfrec.frec.bull.fr (Postfix) with ESMTP id 52C6719D92B for ; Thu, 23 Oct 2008 17:45:31 +0200 (CEST) Received: from [129.183.101.63] (frecb007144.frec.bull.fr [129.183.101.63]) by cyclope.frec.bull.fr (Postfix) with ESMTP id 14F202728D for ; Thu, 23 Oct 2008 17:45:29 +0200 (CEST) Subject: Re: [Qemu-devel] Re: VNC Password From: Laurent Vivier In-Reply-To: <1345721627-BeMail@laptop> References: <1345721627-BeMail@laptop> Content-Type: text/plain; charset=UTF-8 Date: Thu, 23 Oct 2008 17:45:36 +0200 Message-Id: <1224776736.4112.17.camel@frecb07144> Mime-Version: 1.0 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 Le jeudi 23 octobre 2008 =C3=A0 17:10 +0200, Fran=C3=A7ois Revol a =C3=A9= crit : > > Volkan YAZICI wrote: > > > On Thu, 23 Oct 2008, Gerd Hoffmann writes: > > >> > > >> You might want to check out http://dl.bytesex.org/releases/qemu-gt= k/ > > > > > >> then. It can deal with "-vnc $host:$display,password" just = fine. =20 > > > > Sets > > >> a random password via monitor, then connects to the vnc server=20 > > > > using the > > >> password just set. Password is never stored anywhere, it sets a=20 > > > > new > > >> random one each time you start the ui to see the screen of your=20 > > > > VM. > > >> > > >=20 > > > That's not something I'd want to use while I'm trying to get rid of= =20 > > > any > > > kind of X dependencies. > >=20 > > qemu-gtk can handle that remotely too. monitor must listen on tcp=20 > > then > > though, which you might not want to do for security reasons ... > >=20 > > Back to the original question: read password from file isn't=20 > > implemented > > as far I know. >=20 > When I want to specify passwords on command line I usually do something= =20 > like: >=20 > read p > qemu ...,$p >=20 > That makes sure it's not stored in the history. but everyone can see it with a "ps -ef". > You can as well use read p < afile >=20 > If you really don't want to have the string as part of the environment=20 > you can try command substitution... >=20 > qemu ...,$(cat afile) ditto > Alike, the real password won't be stored inthe history. >=20 > man bash should help :) >=20 > Fran=C3=A7ois. >=20 >=20 >=20 --=20 ------------------ Laurent.Vivier@bull.net ------------------ "Tout ce qui est impossible reste =C3=A0 accomplir" Jules Verne "Things are only impossible until they're not" Jean-Luc Picard