"ls -l" with filename or wildcard in sftp session displays UID/GID in the list of files and folders.

Solution Verified - Updated -

Issue

  • In sftp session, "ls -l" displays user and group names in the list of files and folders, but "ls -l *" displays user and group IDs in the list of files and folders.
sftp> ls -l
-rw-------    1 root     root          280 Jun 16 16:10 test.log
-rwxr-xr-x    1 test     test          154 Jun 15 10:21 test.sh
sftp> ls -l test.sh
-rwxr-xr-x    ? 1001     1001          154 Jun 15 10:21 test.sh
sftp> ls -l *
-rw-------    ? 0        0             280 Jun 16 16:10 test.log
-rwxr-xr-x    ? 1001     1001          154 Jun 15 10:21 test.sh

Environment

  • Red Hat Enterprise Linux (All versions)
  • openssh

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