While logging in with root user, getting error "-bash: /usr/bin/id: No such file or directory"

Solution Verified - Updated -

Issue

  • While logging in with root user into bash shell using ssh, getting the following errors.
-bash: /usr/bin/id: No such file or directory
-bash: [: =: unary operator expected
-bash: /usr/bin/id: No such file or directory
-bash: [: =: unary operator expected
-bash: id: command not found
-bash: id: command not found

Environment

  • Red Hat Enterprise Linux 5.4

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