I'm using Strawberry perl 5.32.1 on Windows 11. Some time ago, on Windows 10 and probably using an older perl, I had set up a .perldb file in my %HOME% folder and added some configuration so that I could automatically use Data::Printer in the debugger. I used to be able to type ::p to get the equivalent of Data::Printer:p output.

Yesterday I noticed that wasn't working. After some experimentation I realized that .perldb wasn't being read at all. Then after some research I renamed it perldb.ini and perl 5.31.1 began reading it. So far so good.

Then came the next problem:

perldb: Must not source insecure rcfile %HOME%/perldb.ini. You or the superuser must be the owner, and it must not be writable by anyone but its owner.

(It doesn't actually have %HOME% in the message ... I just substituted that in for my username for security purposes.)

Doing what it says sounds easier than it is. So far I've had no luck. I log in with my Microsoft Outlook username, so I managed to change the file ownership to that user with Properties / Security / Advanced. There are three users: my user account, SYSTEM and Administrators. I've changed SYSTEM and Administrators permissions to Deny all access to perldb.ini. My user is the only one with read and write access. Yet that still hasn't resolved the issue. I still get the above message whenever I run perl -d.

I'm stumped! Any suggestions???


In reply to perldb.ini permission problem on Windows 11 by PUCKERING

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.