All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: "Yuri Pudgorodskiy" <yur@virtuozzo.com>,
	"Marc-André Lureau" <marcandre.lureau@gmail.com>,
	QEMU <qemu-devel@nongnu.org>,
	"Michael Roth" <mdroth@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH v2 0/2] qga: guest-set-user-password - added ability to create new user
Date: Thu, 14 Jan 2016 14:46:53 +0000	[thread overview]
Message-ID: <20160114144653.GW910@redhat.com> (raw)
In-Reply-To: <5697AF2F.80404@openvz.org>

On Thu, Jan 14, 2016 at 05:22:39PM +0300, Denis V. Lunev wrote:
> On 01/14/2016 05:18 PM, Marc-André Lureau wrote:
> >Hi
> >
> >On Wed, Jan 6, 2016 at 1:01 PM, Denis V. Lunev <den@openvz.org> wrote:
> >>These patches add optional 'create' flag to guest-set-user-password command.
> >>When it is specified, a new user will be created if it does not
> >>exist yet.
> >>
> >What's the motivation to re-use set-password instead of a new command?
> 
> because we will have to change the password later on after addition
> of such user. Also this looks better for a case "create if not exists" and
> force new password.

I don't think that's very compelling honestly. In addition when creating
user accounts there's a whole bunch more parameters you potentially want
to set besides just the username - see how many options exist with the
'useradd' command. Also with some users you might not want to set any
password. So if we want to create users via QGA, I think that having a
separate command makes more sense.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

  reply	other threads:[~2016-01-14 14:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-06 12:01 [Qemu-devel] [PATCH v2 0/2] qga: guest-set-user-password - added ability to create new user Denis V. Lunev
2016-01-06 12:01 ` [Qemu-devel] [PATCH 1/2] create ga_run_program() helper for guest-set-user-password Denis V. Lunev
2016-01-06 13:50   ` Denis V. Lunev
2016-01-11 12:08     ` Yuriy Pudgorodskiy
2016-01-12  6:33       ` Denis V. Lunev
2016-01-06 12:01 ` [Qemu-devel] [PATCH 2/2] guest-set-user-password - added ability to create new user Denis V. Lunev
2016-01-14  7:25 ` [Qemu-devel] [PATCH v2 0/2] qga: " Denis V. Lunev
2016-01-14 14:18 ` Marc-André Lureau
2016-01-14 14:22   ` Denis V. Lunev
2016-01-14 14:46     ` Daniel P. Berrange [this message]
2016-01-20 11:30       ` Yuriy Pudgorodskiy
2016-02-09 23:22         ` Michael Roth

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=20160114144653.GW910@redhat.com \
    --to=berrange@redhat.com \
    --cc=den@openvz.org \
    --cc=marcandre.lureau@gmail.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yur@virtuozzo.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.