On Tuesday 23 September 2008, Eric Wilhelm wrote:
> # from Shlomi Fish
>
> # on Monday 22 September 2008 23:55:
> >> There would be no "mechanism" because tar respects the umask by
> >> default when invoked as a non-root user.  Thus, there are no
> >> world-writable files being unpacked from CPAN dists on my machine.
> >>
> >> Is a umask of 022 not the default setup?  Shlomi?
> >
> >The default Mandriva umask appears to be 0002 . I have the following
> > line in my default user's .bashrc:
> >
> >{{{
> >umask 022
> >}}}
>
> So, how are those files being created with world-writable permissions?

That's what my smoke configuration gives me in user "cpan".

> You are running smokes as this user or as root?  

I'm running smokes as a different user altogether (= "cpan") which still has 
the 0002 umask. I only explicitly set the umask to 0022 on user "shlomi", 
which is the user I'm doing most of my work in. 

> You are using tar or 
> something else?

See for yourself:

https://svn.berlios.de/svnroot/repos/web-cpan/CPAN-Smoke-AutoSetup/trunk/first-rev/

>
> Even with the 0002 it would only set the group write bit.
>

Interesting.

Regards,

        Shlomi Fish

-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Stop Using MSIE - http://www.shlomifish.org/no-ie/

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam

Reply via email to