"ls -l" command in sftp shows owner uid instead of user name

Solution Verified - Updated -


  • When doing a ls -l command in sftp prompt, the files owner and group are showing uid and gid, instead of the owner account name and group name:
    Authentication successful.
    sftp> ls -l
    drwx------    3 1002     1003           18 Dec 11 16:27 dir1/
    drwx------    3 1002     1003           17 Dec 11 16:25 dir2/


  • Red Hat Enterprise Linux
  • sftp

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