Unable to edit crontab via root and run service commands

Solution Verified - Updated -

Issue

  • Unable to edit crontab entries
  • Unable to start crond
[root@localhost Packages]# crontab -e
/bin/vi: No such file or directory
crontab: "/bin/vi" exited with status 1
You have new mail in /var/spool/mail/root
[root@localhost Packages]# service crond status
-bash: /sbin/service: /bin/sh: bad interpreter: No such file or directory

Environment

  • Red Hat Enterprise Linux 6.2

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