[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: non-root tests in target check-root?
From: |
Jim Meyering |
Subject: |
Re: non-root tests in target check-root? |
Date: |
Sat, 31 Oct 2009 11:31:56 +0100 |
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
#