From: Sami Haahtinen <ressu@ressukka.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Morphix booting in 1024x768 resolution and Win32 questions
Date: Wed, 17 Mar 2004 15:48:40 +0200 [thread overview]
Message-ID: <c39kvr$863$1@sea.gmane.org> (raw)
In-Reply-To: <20040317112747.077bcc0e.luca.ferroni@studio.unibo.it>
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,
>
> #!/bin/sh
> sudo /sbin/ifconfig $1 172.20.0.1
>
> and put your user in /etc/sudoers file
>
> user ALL=(ALL) NOPASSWD: ALL
EEEEK!
Kids, never ever ever try this at home! You have just granted access to
any account without any password to anyone who can access your account
(read, someone who gets you to run a simple script or exploits the
newest über exploit for the leet mailclient[tm] you were running)
Something that would be a bit more sane would read:
user ALL = NOPASSWD: /sbin/ifconfig
and for someone even more paranoid:
user ALL = NOPASSWD: /sbin/ifconfig tun*
please, do yourself a favour and use one of the above instead of
granting access to all around the system. the password isn't really that
much of a pain to write, and it provides security.
Regards, Sami
next prev parent reply other threads:[~2004-03-17 13:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-16 14:42 [Qemu-devel] Morphix booting in 1024x768 resolution and Win32 questions Jean-Michel POURE
2004-03-16 15:10 ` Markus Niemistö
2004-03-16 15:16 ` Jean-Michel POURE
2004-03-16 16:38 ` Markus Niemistö
2004-03-17 10:27 ` Luca Ferroni
2004-03-17 13:48 ` Sami Haahtinen [this message]
2004-03-17 14:20 ` [Qemu-devel] " Luca Ferroni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='c39kvr$863$1@sea.gmane.org' \
--to=ressu@ressukka.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).