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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In