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] Can't add a user to Xen 3.0.3 VM !

To: "Omer Khalid" <Omer.Khalid@xxxxxxx>
Subject: RE: [Xen-users] Can't add a user to Xen 3.0.3 VM !
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Wed, 24 Jan 2007 15:37:38 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 24 Jan 2007 06:38:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <77e5896b0701240627n650e6efen9a75c9a2a5916eab@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acc/w/0leXDHgmhmTV24XnhUrH0YnwAADtTw
Thread-topic: [Xen-users] Can't add a user to Xen 3.0.3 VM !
 

> -----Original Message-----
> From: okhalid.cern@xxxxxxxxx [mailto:okhalid.cern@xxxxxxxxx] 
> On Behalf Of Omer Khalid
> Sent: 24 January 2007 14:28
> To: Petersson, Mats
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] Can't add a user to Xen 3.0.3 VM !
> 
> Hello Mat,
> 
> I do have the write access with my VM. I can create files and 
> directories...
> 
> Its just the users I can't add...

Ok, so try adding a line in /etc/passwd (for example copying one of the
existing lines and changing the numbers to some random ones, and
changing the name of course). It should work. If it doesn't then theres
tsomething preventing you from writing to the /etc/passwd file - not
Xen, but something else in the system setup. 

I just added another user:
bleh:x:501:501::/home/bleh:/bin/bash

You could try adding that one. 

As root, you'll also need to:
mkdir /home/bleh
chown bleh /home/bleh
passwd bleh
<type in the same password twice>


Another option would be to use strace to follow what "adduser blah"
does, and find out what fails. 

But I can assure you that it's not Xen in itself that prevents this. You
may have some security setup or some such preventing it, but it IS NOT
XEN. 

> 
> Any more ideas that could it be some thing my VM's LVM 
> partition is mounted/created or could there be some thing to 
> do with the image creation process for the VM? 

Possibly the image creation, but unlikely. It's more likely some setup
issue someplace else. 

--
Mats
> 
> Cheers
> Omer
> 
> 
> On 1/24/07, Petersson, Mats <Mats.Petersson@xxxxxxx> wrote:
> 
>       > -----Original Message-----
>       > From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>       > [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx ] On Behalf Of
>       > Omer Khalid
>       > Sent: 24 January 2007 12:57
>       > To: xen-users@xxxxxxxxxxxxxxxxxxx
>       > Subject: Fwd: [Xen-users] Can't add a user to Xen 3.0.3 VM !
>       >
>       >
>       >
>       > ---------- Forwarded message ----------
>       > From: Omer Khalid <Omer.Khalid@xxxxxxx>
>       > Date: Jan 24, 2007 1:56 PM
>       > Subject: Re: [Xen-users] Can't add a user to Xen 3.0.3 VM !
>       > To: Tomasz Chmielewski <mangoo@xxxxxxxx>
>       >
>       > Hello Tomasz,
>       >
>       > Here is the output for the lsattr command:
>       >
>       > [root@CTB- ~]# lsattr /etc/passwd /etc/shadow /etc/group 
>       > ------------- /etc/passwd
>       > ------------- /etc/shadow
>       > ------------- /etc/group
>       
>       That looks the same as on my machines.
>       
>       As to Xen preventing the creation of users, I don't 
> believe so - since 
>       Xen doesn't actually KNOW anything about users, or 
> about the files that
>       are involved (or any OTHER files, for that matter). Xen 
> can't affect
>       things it doesn't know about, right? [Other than as a 
> side-effect, but 
>       that would be much more likely to be random crashes or 
> other spurious
>       errors, rather than this partiuclar effect]. [Note that 
> adduser is just
>       writing something in /etc/passwd - you can edit that 
> with a text-editor 
>       if you like, in fact that's how you USED to add users 
> to Linux/Unix
>       machines many years back].
>       
>       How about creating a directory on /home, can you do that?
>       
>       I just added a user "blah" to my Xen-based machine 
> without any problem. 
>       
>       --
>       Mats
>       >
>       > Cheers
>       > Omer
>       >
>       >
>       > On 1/24/07, Tomasz Chmielewski < mangoo@xxxxxxxx
>       > <mailto:mangoo@xxxxxxxx > > wrote:
>       >
>       >       Omer Khalid wrote:
>       >       > Hello Tomasz,
>       >       >
>       >       > Yes, I could create and write to files. I think its
>       > some thing to do
>       >       > with xen kernal rather! 
>       >       >
>       >       > Any more ideas?
>       >
>       >       lsattr /etc/passwd /etc/shadow /etc/group
>       >
>       >       ?
>       >
>       >       --
>       >       Tomasz Chmielewski
>       >       http://wpkg.org <http://wpkg.org> 
>       >
>       >
>       >
>       >
>       >
>       > --
>       > 
> ---------------------------------------------------------------
>       >
>       >
>       > CERN - European Organization for Nuclear
>       > IT Department,  CH-1211 Geneva 23, Switzerland 
>       >
>       > Phone: +41 (0) 22 767 7996
>       > Fax:     +41 (0) 22 767 4900
>       > E-mail : Omer.Khalid@xxxxxxx <mailto:Omer.Khalid@xxxxxxx >
>       > Homepage: http://cern.ch/Omer.Khalid
>       >
>       >
>       > --
>       > 
> ---------------------------------------------------------------
>       >
>       >
>       > CERN - European Organization for Nuclear 
>       > IT Department,  CH-1211 Geneva 23, Switzerland
>       >
>       > Phone: +41 (0) 22 767 7996
>       > Fax:     +41 (0) 22 767 4900
>       > E-mail : Omer.Khalid@xxxxxxx
>       > Homepage: http://cern.ch/Omer.Khalid 
> <http://cern.ch/Omer.Khalid>
>       >
>       
>       
>       
> 
> 
> 
> 
> -- 
> --------------------------------------------------------------- 
>                                                               
>                
> CERN - European Organization for Nuclear 
> IT Department,  CH-1211 Geneva 23, Switzerland
> 
> Phone: +41 (0) 22 767 7996
> Fax:     +41 (0) 22 767 4900 
> E-mail : Omer.Khalid@xxxxxxx
> Homepage: http://cern.ch/Omer.Khalid 
> 



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