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

Re: [Xen-users] User access to "xm console"


  • To: Derrik Pates <demon@xxxxxxxxxxxxx>
  • From: Anand <xen.mails@xxxxxxxxx>
  • Date: Mon, 2 Jan 2006 18:34:36 +0530
  • Cc: Andy Smith <andy@xxxxxxxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 02 Jan 2006 13:09:36 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=WKaz9/AeT1tIKcQgF4NiwMZdcKKLkl2+8osiP9n/SFYAi9TAAOCTwx6rmSi+CFv7B/0FtPyUpY0FuczKzcced++KZHd6IMq7PENQQ7addqU/lkqIycjyvYRAfPizWU//NpJUnofU1qXzp4SIXuJV56tBRtHUiqQxC/gTJEseEPI=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Dear Derrik,

Would you mind sharing your custom script ?

On 1/2/06, Derrik Pates <demon@xxxxxxxxxxxxx > wrote:
I've gone to the length of adding code to my custom domU provisioning
script to set up a plain user for each created domain, with the GECOS
field containing the full name of the domain to attach to. Each of them
is a member of a group (I call it 'vscons'). I assign these users a
shell of /usr/local/bin/xencons-sh, which contains the following:

#!/bin/bash

/usr/sbin/xm console $(getent passwd $(id -u) | cut -d ':' -f 5)

That way, the users in question can't do anything other than attach to
the console of their Xen instance, and disconnection means immediate logout.

Keep in mind that Xen 3 requires a different script, as the domU
consoles are done quite differently than they were in 2.0.x.


Thanks for the nice script.

regards,

Anand
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.