Fix Cannot find name for user ID

If when logging into a site via SSH you get the following errors:

[email protected]{ip}'s password:  Last login: Tue Feb 19 08:55:36 2013 from 123.456.789.012  id: cannot find name for user ID ***  id: cannot find name for user ID *** 
/usr/bin/whoami: cannot find name for user ID *** 
/usr/bin/whoami: cannot find name for user ID *** 
/usr/bin/whoami: cannot find name for user ID *** 
/usr/bin/whoami: cannot find name for user ID ***  whoami: cannot find name for user ID *** 
grep: /var/cpanel/users/: Permission denied 
/usr/bin/whoami: cannot find name for user ID *** 
/usr/bin/whoami: cannot find name for user ID ***

I have no [email protected] [~]#

 

There is some misconfiguration on the server which causes the issue in the mapping of user ID with the user name.  The misconfiguration could also cause an inability to login through SFTP.  SQLYog, zeckoCentral Syncs and zeckoShop all continue to work as expected.  SSH works but gives the above messages regarding the missing name.

WHM Fix:  Login to the WHM control panel.  Disable and re-enable shell access for the user in question should resolve the issue.  If this does not fix the issue you may need to contact your hosting provider and open a support ticket.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Categories: