About this list Date view Thread view Subject view Author view Attachment view

From: Dennis Schoen (ds_at_teuto.net)
Date: Tue 24 Sep 2002 - 12:27:50 BST


On Tue, Sep 24, 2002 at 12:23:35PM +0200, Herbert Poetzl wrote:
> the chcontext utility seems to remove the
> ability to change/access the files within
> the /vservers subdirectory ...
>
> it seems, that you have to change the
> permissions on the /vservers directory to
> make the "new" vrpm (chcontext) work ...
I've also noticed that. As a quick workaround, the following patch
to vrpm transparently changes the permissions:

--- /usr/sbin/vrpm Tue Sep 10 09:05:55 2002
+++ vrpm-new Wed Sep 11 10:07:58 2002
@@ -52,7 +52,9 @@
                         fi
                         #echo rpm --root /vservers/$serv $*
                         echo Updating server $serv
+ /bin/chmod 100 /vservers # needed for rpm command
                         /usr/sbin/chcontext --silent $CTXOPT rpm --root /vservers/$serv $*
+ /bin/chmod 000 /vservers
                 done
                 if [ "$UNIFY" = "yes" ] ; then
                         PACKAGES=

Ciao
  Dennis

-- 
... [it is] something unearthly ... If there are sentient
beings on other planets, then they play Go.

- Emanuel Lasker, chess grandmaster


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:42 GMT by hypermail 2.1.3