Why does the script /usr/bin/test get executed when user does login in csh ?

Solution Unverified - Updated -

Issue

  • If a world executable file/script by the name test is created under /usr/local/bin and try to switch to a user who has csh as default shell, the test file gets executed automatically.
  • This is the case only with any file named test under /usr/local/bin.
  • If the name is changed to any other name, it does not get executed.

Environment

  • Red Hat Enterprise Linux 6.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content