WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: Andy Smith <andy@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] User access to "xm console"
From: Derrik Pates <demon@xxxxxxxxxxxxx>
Date: Mon, 02 Jan 2006 01:15:58 -0500
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 02 Jan 2006 06:21:07 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20060102052545.GB7017@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20060102052545.GB7017@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.7 (X11/20051018)
Andy Smith wrote:
> I would like to give users access to xm console to their domain.  I
> am using xen 2.0.7 and don't really want to upgrade this server to
> 3.0 just yet.
> 
> Has anyone done this?  Does anyone have any tips?  Are there any
> security issues with doing this?  Beyond the usual that it's going
> to require at least some access to dom0 which is potentially risky..

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.

-- 
Derrik Pates
demon@xxxxxxxxxxxxx

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