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 @@
#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
if [ "$UNIFY" = "yes" ] ; then
-- ... [it is] something unearthly ... If there are sentient beings on other planets, then they play Go.
- Emanuel Lasker, chess grandmaster