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

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Mon 28 Oct 2002 - 00:52:08 GMT


On Sun, Oct 27, 2002 at 07:30:23PM -0500, tedsuo wrote:
> >
> > okay, let's assume you patched the kernel with
> > CTX13 and quota01 patches ...
> > now you can do some tests to check the new functionality
> >
> > # chcontext --ctx 100 touch /tmp/context100.file
> > # chcontext --ctx 101 echo "Test" >/tmp/context101.file
> >
> > # ls -l /tmp/
>
> OK
>
> > should now report group/ownership of 100*(2^16) and
> > 101*(2^16) which means root in ctx 100/101 ...
> >
> > now su to some account in the physical server and
> > do the same chcontext actions as this user ... you should
> > see that the uid/gid changes to 100*(2^16)+uid/gid of that
> > user ... and the access restrictions are now active.
>
> cannot chcontext when su to a normal account...

try the other way around chcontext & then su
(I forgot about the limited user capabilities,
sorry about that)

> > user# chcontext --ctx 100 ls -l /tmp/user_ctx0.file
> > user# chcontext --ctx 100 vi /tmp/user_ctx0.file

must become ...

# chcontext --ctx 100 su <user> -c ls -l /tmp/user_ctx0.file
# chcontext --ctx 100 su <user> -c vi /tmp/user_ctx0.file

> > > need more info test it please....
> >
>
>
> # quotacheck -acugx
> deb:/# quotacheck -acugx
> Cannot get exact used space... Results might be inaccurate.

thats okay ...

> deb:/# repquota -au
> *** Report for user quotas on device /dev/hdc4
> Block grace time: 7days; Inode grace time: 7days
> Block limits File limits
> User used soft hard grace used soft hard grace
> ----------------------------------------------------------------------
> root -- 46912 0 0 4276 0 0
> man -- 4 0 0 1 0 0
> news -- 4 0 0 1 0 0
> #327680 -- 102980 0 0 3556 0 0
> #331723 -- 748 0 0 72 0 0
> #524288 -- 8 0 0 3 0 0

looks good to me ...
have you created the 102980 blocks in 3556 files
by yourself? or where do they come from?

> deb:/# repquota -ax
> *** Report for context quotas on device /dev/hdc4
> Block grace time: 7days; Inode grace time: 7days
> Block limits File limits
> Ctx used soft hard grace used soft hard grace
> ----------------------------------------------------------------------
> #0 -- 46920 0 0 4278 0 0
> #5 -- 103728 0 0 3628 0 0
> #8

context 5 seems okay, context 8 looks truncated?
is this true? or a copy paste issue?

> Thank a lot
> hope this will help you
>
> if i can do anything more .. test ... reply me

if you could try the 2.4.20-pre11 and the quota02
that would be great ...

> > PPS: is Tedsuo == Tetsuo (as in Akira?)
> Akira :) maybe it was a kind of inspiration ...:)
Inspiration to whom? *G*

best,
Herbert


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:43 GMT by hypermail 2.1.3