[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: non-root tests in target check-root?
From: |
Voelker, Bernhard |
Subject: |
RE: non-root tests in target check-root? |
Date: |
Mon, 2 Nov 2009 08:56:41 +0100 |
Jim Meyering wrote:
> Voelker, Bernhard wrote:
> > I'm wondering why there are so many tests (in coreutils-8.0( run by
> >
> > sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make -k check-root
> >
> > which are skipped with "must be run as non-root",
> > e.g. touch/read-only, mv/perm-1, etc.
> > Is that on purpose (to check wether the root check works;-) ?
>
> It's because running them as root would fail,
> due to the different way in which permissions work when
> you are root; e.g., root can touch and write to a read-only file:
>
> # :>f; chmod 0 f; touch f; echo > f
> #
thanks for the answer & sorry for the delay.
That was clear to me, maybe my question was inprecise:
If I understand the check* targets right, there is the general
purpose target "check" which can be run as a non-root or a root user
while there is a special target for root-only checks named "check-root".
If this is true, then why is a non-root made during "check-root"?
Have a nice day,
Berny
- RE: non-root tests in target check-root?,
Voelker, Bernhard <=