Firstly, see the update to my post. Hopefully, the originally incorrect /cygdrive/ (now changed to /cygdrive/c/cygwin64) didn't mislead you; my apologies if it did.

It seems our mode of operating differs somewhat; for instance, I don't believe I've ever used Windows clipboard to copy a file. I rarely use File Explorer for anything; ironically, the most common use is to update Cygwin (for the current 3.3.5 version: C:\Users\ken\local\opt\cygwin\3_3_5\setup-x86_64.exe). I use a Cygwin CLI to create files: "cp old new", "vim new" and "> new" would be the most common for individual files; "module-starter --module=New::Module" creates a directory structure for a new module — none of these creates files with inappropriate permissions.

I checked through all of my (Perl v5.36) @INC directories. The core modules were installed using perlbrew; all CPAN modules were installed using the cpan utility (two exceptions; "cpan: Terminal does not support AddHistory." has details); all personal modules were installed with a standard "make install". All *.pm files had 444 permissions (except for one black sheep, Tcl.pm, which had 555 — I've no idea what happened there).

I found an old Strawberry Perl v5.26.3 installation; I don't recall details of setting this up. All *.pm files in lib and vendor/lib had 444 permissions with owner ken; all in site/lib had 555 with owner Administrators.

That's about all the info I could think of that was relevant. I'm happy to share more if you think it will be useful; just ask. Bear in mind how our different ways of working may affect outcomes.

"No-one has ever complained about the perms settings of the files in my perl modules."

I'm really no expert in this area; take the following as (potentially ill-informed) opinion. If no one has ever complained, there's probably no urgency to "fix" what's not broken. I see you have "25 distributions uploaded to CPAN". Perhaps change the permissions in one distro as a test; look at working on the others as updates are made.

— Ken


In reply to Re^3: [Cygwin] Setting and getting file permissions as octal numbers by kcott
in thread [Cygwin] Setting and getting file permissions as octal numbers by syphilis

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.