Re: [PATCH] qemu.conf: Change the example user from 'root' to 'qemu'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 01, 2018 at 13:32:20 +0100, Daniel Berrange wrote:
> On Fri, Jun 01, 2018 at 02:08:38PM +0200, Kashyap Chamarthy wrote:
> > Signed-off-by: Kashyap Chamarthy <kchamart@xxxxxxxxxx>
> > ---
> >  src/qemu/qemu.conf | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/src/qemu/qemu.conf b/src/qemu/qemu.conf
> > index 31738ff19c..444247cf31 100644
> > --- a/src/qemu/qemu.conf
> > +++ b/src/qemu/qemu.conf
> > @@ -403,13 +403,14 @@
> >  #
> >  #       user = "qemu"   # A user named "qemu"
> >  #       user = "+0"     # Super user (uid=0)
> > +#       user = 'root'   # The 'root' user
> >  #       user = "100"    # A user named "100" or a user with uid=100
> >  #
> > -#user = "root"
> > +#user = "qemu"
> >  
> >  # The group for QEMU processes run by the system instance. It can be
> >  # specified in a similar way to user.
> > -#group = "root"
> > +#group = "qemu"
> >  
> >  # Whether libvirt should dynamically change file ownership
> >  # to match the configured user/group above. Defaults to 1.
> 
> The reason the config file documents 'root' is because that is what
> configure defaults to.  If you pass --with-qemu-user to configure,
> we don't update the config file example though, and perhaps we should.
> 
> Alternatively should we make configure defualt to 'qemu' instead of
> 'root', since it is generally considered insane to run QEMU as root.

But user 'qemu' is not by default present on all systems. Even the
libvirt.spec file creates the account.

As a second thought, we generally use commented-out bits that are the
non-default configuration. So this fits the pattern in the extent that
any sane distro specified it's own user/group using the configure
options and if for any reason the user wants to run this as root it's
done just by uncommenting it.

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux