Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B3bw6-0002W0-EZ for qemu-devel@nongnu.org; Wed, 17 Mar 2004 09:22:22 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B3bty-0001vw-NM for qemu-devel@nongnu.org; Wed, 17 Mar 2004 09:20:42 -0500 Received: from [212.216.176.118] (helo=vsmtp14.tin.it) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B3bty-0001vQ-0O for qemu-devel@nongnu.org; Wed, 17 Mar 2004 09:20:10 -0500 Received: from wallace (82.51.6.33) by vsmtp14.tin.it (7.0.027) id 40571CC30002FB21 for qemu-devel@nongnu.org; Wed, 17 Mar 2004 15:20:01 +0100 Date: Wed, 17 Mar 2004 15:20:16 +0100 From: Luca Ferroni Subject: Re: [Qemu-devel] Re: Morphix booting in 1024x768 resolution and Win32 questions Message-Id: <20040317152016.4fa3c140.luca.ferroni@studio.unibo.it> In-Reply-To: References: <200403161542.26268.jm@poure.com> <200403161616.09613.jm@poure.com> <20040316183841.3c8c7ece.markus.niemisto@iki.fi> <20040317112747.077bcc0e.luca.ferroni@studio.unibo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 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 Il Wed, 17 Mar 2004 15:48:40 +0200, Sami Haahtinen ha= scritto: > Luca Ferroni wrote: > > The problem of root execution is the script /etc/qemu-ifup which calls = ifconfig > > It is not enough to set permissions 755 to this script > > You can use sudo,=20 > >=20 > > #!/bin/sh > > sudo /sbin/ifconfig $1 172.20.0.1 > >=20 > > and put your user in /etc/sudoers file > >=20 > > user ALL=3D(ALL) NOPASSWD: ALL >=20 > EEEEK! >=20 > Kids, never ever ever try this at home! You have just granted access to=20 > any account without any password to anyone who can access your account=20 > (read, someone who gets you to run a simple script or exploits the=20 > newest =FCber exploit for the leet mailclient[tm] you were running) >=20 > Something that would be a bit more sane would read: > user ALL =3D NOPASSWD: /sbin/ifconfig >=20 > and for someone even more paranoid: > user ALL =3D NOPASSWD: /sbin/ifconfig tun* >=20 > please, do yourself a favour and use one of the above instead of=20 > granting access to all around the system. the password isn't really that= =20 > much of a pain to write, and it provides security. sorry I used that configuration for test because tun0 didn't work properly. thank you for the suggestion,=20 I have never used sudo before and so I left that configuration after the te= st succeded bye --=20 ---------------------------------------- Non ci toglieranno mai....la LIBERTA'!!! Luca Ferroni www.cs.unibo.it/~fferroni/ ----------------------------------------