Attempting To Create Directory /root/perl5

Home » CentOS » Attempting To Create Directory /root/perl5
CentOS 3 Comments

Dear All,

Could someone give me some pointers. I never had it on CentOS 4,5,6. On freshly installed CentOS 7 (“development workstation” installation type with several extra things) when I log in as root in console I get this message:

attempting to create directory /root/perl5

and indeed empty directory /root/perl5 is being created. (And my understanding is that that is done for every user at login). Can anyone point to what does it and what is the rationale behind that.

Not that I no not like perl in particular, but I do not like any tweaking of anything happening as a user logs in.

Thanks for all your help.

And my apologies for being this ignorant person who likely doesn’t know some trivial thing…

Sincerely yours, Valeri

++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++

3 thoughts on - Attempting To Create Directory /root/perl5

  • Nobody seemed to answer, so I will answer it myself.

    If you have package perl-homedir installed, it adds its stuff to
    /etc/profile.d, and upon user login an existence of ~/perl5 will be checked and this directory will be created if it doesn’t exist.

    It looks like perl-homedir appears in one of the package groups on CentOS 7.

    If (like me) you don’t like this, you can add to your kickstart file line that will make this package excluded. Here are two lines I have at the end of %packages group in my kickstart file:

    %packages

    -perl-local-lib
    -perl-homedir
    %end

    Thanks. Valeri

    ++++++++++++++++++++++++++++++++++++++++
    Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247
    ++++++++++++++++++++++++++++++++++++++++

  • I’m not seeing that on my system. Assuming that your bash rpm verifies (meaning that nothing has modified the bash startup scripts), my best guess would be that some package has dropped a file into /etc/profile.d that creates the directory. Finding that file would be a first step on figuring out what it’s trying to do. Ali

  • Hi Ali,

    Thanks for answering. I did figure it out, and kind of answered my own question. As it probably didn’t come through mail list correctly (I blame myself ;-) I’m just pasting it below:

    Nobody seemed to answer, so I will answer it myself.

    If you have package perl-homedir installed, it adds its stuff to
    /etc/profile.d, and upon user login an existence of ~/perl5 will be checked and this directory will be created if it doesn’t exist.

    It looks like perl-homedir appears in one of the package groups on CentOS 7.

    If (like me) you don’t like this, you can add to your kickstart file line that will make this package excluded. Here are two lines I have at the end of %packages group in my kickstart file:

    %packages

    -perl-local-lib
    -perl-homedir
    %end

    Thanks. Valeri

    ++++++++++++++++++++++++++++++++++++++++
    Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247
    ++++++++++++++++++++++++++++++++++++++++