[CentOS] attempting to create directory /root/perl5

Mon Jul 28 22:00:34 UTC 2014
Valeri Galtsev <galtsev at kicp.uchicago.edu>

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

On Mon, July 28, 2014 4:56 pm, Ali Corbin wrote:
> 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
>
>
> On Fri, Jul 25, 2014 at 12:11 PM, Valeri Galtsev
> <galtsev at kicp.uchicago.edu> wrote:
>> 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
>> ++++++++++++++++++++++++++++++++++++++++
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


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