Can not execute 'vi' and 'more' binary, getting operation not permitted error
Issue
- Can not execute few binaries like
vi
andmore
, 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 oncebash
is executed, both binaries stops working and onceexit
is done frombash
, the binaryvi
starts working butmore
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, tools, and much more.