[CentOS] attempting to create directory /root/perl5

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[CentOS] attempting to create directory /root/perl5

Valeri Galtsev
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
[hidden email]
http://lists.centos.org/mailman/listinfo/centos
Reply | Threaded
Open this post in threaded view
|

Re: [CentOS] attempting to create directory /root/perl5

Valeri Galtsev
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 Fri, July 25, 2014 2:11 pm, Valeri Galtsev 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
> ++++++++++++++++++++++++++++++++++++++++
>


++++++++++++++++++++++++++++++++++++++++
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
[hidden email]
http://lists.centos.org/mailman/listinfo/centos
Reply | Threaded
Open this post in threaded view
|

Re: [CentOS] attempting to create directory /root/perl5

Ali Corbin
In reply to this post by Valeri Galtsev
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
<[hidden email]> 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
> [hidden email]
> http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
[hidden email]
http://lists.centos.org/mailman/listinfo/centos
Reply | Threaded
Open this post in threaded view
|

Re: [CentOS] attempting to create directory /root/perl5

Valeri Galtsev
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
> <[hidden email]> 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
>> [hidden email]
>> http://lists.centos.org/mailman/listinfo/centos
> _______________________________________________
> CentOS mailing list
> [hidden email]
> 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
++++++++++++++++++++++++++++++++++++++++
_______________________________________________
CentOS mailing list
[hidden email]
http://lists.centos.org/mailman/listinfo/centos