Am Montag, 7. August 2006 20:20 schrieb Herbert Poetzl:
> On Mon, Aug 07, 2006 at 01:27:31PM +0200, Oliver Heinz wrote:
> > Am Montag, 7. August 2006 12:25 schrieb Oliver Welter:
> > > Hi Oliver,
> > >
> > > try "vnamespace -e <xid> mount...."
> >
> > this gives me
> >
> > mount: can't find /srv/vservers/service/tmp in /etc/fstab or /etc/mtab
>
> well, mount tries to get the options from /etc/mtab
> and the devices from /etc/fstab, so, you have two
> or three options here:
>
> 1) --bind mount some filesystem with exec permission
> over the guest /tmp for the time you need it executable
>
> 2) chroot into the guest and do the remount there
>
> 3) copy over the fstab/mtab to the host, modify it
> accordingly and rerun the remount
>
> of course all that is supposed to happen _inside_ the
> guest namespace ...
vnamespace -e <xid> chroot <vdir> mount -o remount,noexec /tmp
which is solution 2) works perfectly and seems to me the best solution
Thank you,
Oliver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Aug 8 09:43:05 2006