Can not execute 'vi' and 'more' binary, getting operation not permitted error
Issue
- Can not execute few binaries like
viandmore, 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
kshshell where these two binaries work as expected and oncebashis executed, both binaries stops working and onceexitis done frombash, the binaryvistarts working butmorestill throws errors as above. - If these binaries are copied at
/tmpor 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
