Using cpan as root to build/install modules, always uses uid 1000 and gid 1000. These id's are already allocated to other users/groups making system administration difficult.

I have searched the web (including this site) and the documentation without finding anything helpful. See below:

goldens:~/.cpan # ll -n build/CPAN-2.14-0ATfK7/ total 1220 drwxr-xr-x 5 0 0 4096 Jul 4 16:11 cpan-home drwxr-xr-x 8 1000 1000 4096 Jul 4 16:11 t -rw-r--r-- 1 0 0 0 Jul 4 16:11 pm_to_blib drwxr-xr-x 8 0 0 4096 Jul 4 16:11 blib -rw-r--r-- 1 0 0 1380 Jul 4 16:11 MYMETA.yml -rw-r--r-- 1 0 0 2300 Jul 4 16:11 MYMETA.json -rw-r--r-- 1 0 0 65681 Jul 4 16:11 Makefile -rw-r--r-- 1 1000 1000 50942 Jun 24 23:28 SIGNATURE -rw-r--r-- 1 1000 1000 97821 Jun 24 23:28 README -rw-r--r-- 1 1000 1000 2524 Jun 24 23:28 META.json -rw-r--r-- 1 1000 1000 1498 Jun 24 23:28 META.yml drwxr-xr-x 2 1000 1000 24576 Jun 24 23:28 distroprefs drwxr-xr-x 3 1000 1000 4096 Jun 24 23:28 inc drwxr-xr-x 4 1000 1000 4096 Jun 24 23:28 lib drwxr-xr-x 2 1000 1000 4096 Jun 24 23:28 scripts -rw-r--r-- 1 1000 1000 30866 Jun 24 23:28 Makefile.PL -rw-r--r-- 1 1000 1000 21715 Jun 24 23:27 MANIFEST -rw-r--r-- 1 1000 1000 83463 Jun 24 23:18 Changes -rw-r--r-- 1 1000 1000 2582 Jun 24 23:14 MANIFEST.SKIP -rw-r--r-- 1 1000 1000 758603 Dec 30 2015 Todo -rw-r--r-- 1 1000 1000 13287 Mar 28 2014 PAUSE2015.pub -rw-r--r-- 1 1000 1000 11166 Mar 27 2014 PAUSE2011.pub -rw-r--r-- 1 1000 1000 1590 Jul 14 2013 SlayMakefile -rw-r--r-- 1 1000 1000 1750 Sep 8 2012 PAUSE2003.pub -rw-r--r-- 1 1000 1000 2742 Sep 8 2012 PAUSE2005.pub -rw-r--r-- 1 1000 1000 3782 Sep 8 2012 PAUSE2007.pub -rw-r--r-- 1 1000 1000 4818 Sep 8 2012 PAUSE2009.pub goldens:~/.cpan #

This is happening on all of my Linux systems. Any guidance would be greatly appreciated.


In reply to cpan build environment by DennisLGolden

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.