bug-coreutils
[Top][All Lists]
Advanced

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

Re: stable coreutils-8.1 today, fingers crossed


From: Gilles Espinasse
Subject: Re: stable coreutils-8.1 today, fingers crossed
Date: Sat, 21 Nov 2009 21:12:32 +0100

----- Original Message ----- 
From: "Jim Meyering" <address@hidden>
To: "Gilles Espinasse" <address@hidden>
Cc: "Pádraig Brady" <address@hidden>; <address@hidden>; "Andreas
Schwab" <address@hidden>; "Eric Blake" <address@hidden>
Sent: Saturday, November 21, 2009 7:11 PM
Subject: Re: stable coreutils-8.1 today, fingers crossed


> Gilles Espinasse wrote:
> > That was the explanation.
> > I checked before the PATH before running make check and not inside
pwd-long
> > /path/to/coreutils/src is added at the beginning of PATH
> > And /usr/src was writable by everyone.
> > I fixed that. Then fail-eperm no more fail (did not find a file not
owned by
> > the user, so skip).
> > But pwd-long still fail as coreutils-8.1 and src directories are
writable by
> > everyone.
> > [chroot-i486] root:/usr/src$ tar xf cache/coreutils-8.1.tar.gz
> > [chroot-i486] root:/usr/src$ ls -ld coreutils-8.1/src
> > drwxrwxrwx 2 root root 4096 Nov 18 18:55 coreutils-8.1/src
> > [chroot-i486] root:/usr/src$ ls -ld coreutils-8.1 coreutils-8.1/src
> > drwxrwxrwx 13 root root 4096 Nov 18 18:55 coreutils-8.1
> > drwxrwxrwx  2 root root 4096 Nov 18 18:55 coreutils-8.1/src
>
> That is happening only to you -- because you have an unsafe umask of 0.
> Don't do that!  It is especially problematic when done by "root".
>
> Put this in one of your shell start-up scripts:
>
> umask 022

[chroot-i486] root:/$ umask
0022
[chroot-i486] root:/$ rm -rf /usr/src/coreutils*
[chroot-i486] root:/$ cd /usr/src
[chroot-i486] root:/usr/src$ tar xf cache/coreutils-8.1.tar.gz
[chroot-i486] root:/usr/src$ ls -ld /usr /usr/src /usr/src/coreutils-8.1
/usr/src/coreutils-8.1/src
drwxr-xr-x  9 root root 4096 Nov 21 13:10 /usr
drwxr-xr-x 15 root root 4096 Nov 21 20:16 /usr/src
drwxrwxrwx 13 root root 4096 Nov 18 18:55 /usr/src/coreutils-8.1
drwxrwxrwx  2 root root 4096 Nov 18 18:55 /usr/src/coreutils-8.1/src

don't know why

Gilles





reply via email to

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