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

Solution Verified - Updated -


  • 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.


  • Red Hat Enterprise Linux 5.10

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