bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils-6.9 build/check-root: test/rm failed on no-give-up


From: anirkko
Subject: Re: coreutils-6.9 build/check-root: test/rm failed on no-give-up
Date: Thu, 3 May 2007 17:51:23 +0200 (MET DST)


> From address@hidden Thu May  3 12:40:21 2007
...
> 
> oops - forgot:
> uid=60001(nobody) gid=60001(nobody) groups=60001(nobody)
> 
> Ok.  Have you done anything with ACLs?
> Maybe there is an ACL in effect that renders your files removable by anyone.
> 
> Please add these to the above:
>   ls -lr d
>   getfacl -a d
>   getfacl -d d
> 

Hi
Finally seen the reason for confusion why the test sometimes passes
and sometimes not:

If 'gmake check' is run as root from the tests/rm directory (such as
after when I make your suggested modifications) then the test always
passes because permissions of directory 'd' are 'drwxr-xr-x'

If 'gmake check' is run from the script, then the test always fails
because then, permissions of directory 'd' are 'drwxrwxrwx'

Why is this so? The script called 'umask 000' because otherwise almost
all other tests were skipped. Maybe the test itself should set umask to a
defined value (umask 022) before creating directories, instead of
leaving it to chances....

Greets,
Arto

output with 'umask 000':
------------------------------------------------------
uid=60001(nobody) gid=60001(nobody) groups=60001(nobody)
total 0
-rw-rw-rw- 1 nobody other 0 May  3 17:43 f

# file: d
# owner: nobody
# group: other
user::rwx
group::rwx              #effective:rwx
mask:rwx
other:rwx

# file: d
# owner: nobody
# group: other
FAIL: no-give-up

output with 'umask 022':
------------------------------------------------------
uid=60001(nobody) gid=60001(nobody) groups=60001(nobody)
total 0
-rw-r--r-- 1 nobody other 0 May  3 17:44 f

# file: d
# owner: nobody
# group: other
user::rwx
group::r-x              #effective:r-x
mask:r-x
other:r-x

# file: d
# owner: nobody
# group: other
rm: cannot remove directory `d': Permission denied







reply via email to

[Prev in Thread] Current Thread [Next in Thread]