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
#