I saw that link but it won't work. The problem is that perl shells out to run make and then the make command shells out to do it's stuff. This mean the umask for the shell is reset because we have it hardcoded in the global bashrc and cshrc files here. I'm really surprised there isn't a way to tell cpan what the permission should be (and have it added tot he makefile somehow) or that e.g. GNU install isn't used to deal with this issue. I ended up overriding it by setting the umask in my local .cshrc file, but that defeats the purpose of setting a more restricted (and saner) umask for root. And if I remove it later on I will likely forget to add it back in later on. I suppose I could just do a chmod -R on the directories and files under lib afterwards, but that sure feels like a kludge. Thanks for the help!!

Elda Taluta; Sarks Sark; Ark Arks


In reply to Re^2: cpan and installing as root by Argel
in thread cpan and installing as root by Argel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.