Can not execute 'vi' and 'more' binary, getting operation not permitted error

Solution Verified - Updated -

Issue

  • Can not execute few binaries like vi and more, while executing the same, getting the following errors.
# more /var/adm/messages
more: more: cannot execute [Exec format error]

# view /var/more/messages
view: view: cannot execute [Exec format error]
  • By default the user gets ksh shell where these two binaries work as expected and once bash is executed, both binaries stops working and once exit is done from bash, the binary vi starts working but more still throws errors as above.
  • If these binaries are copied at /tmp or some other location, and executed from there, they execute as expected.
  • This starts happening once the system gets updated/patched everytime.

Environment

  • Red Hat Enterprise Linux 5.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In