[Bug 3953] New: SFTP ls -n displays username/groupname instead of numeric UID/GID after users-groups-by-id extension
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Apr 24 00:12:55 AEST 2026
https://bugzilla.mindrot.org/show_bug.cgi?id=3953
Bug ID: 3953
Summary: SFTP ls -n displays username/groupname instead of
numeric UID/GID after users-groups-by-id extension
Product: Portable OpenSSH
Version: 10.2p1
Hardware: 68k
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: sftp
Assignee: unassigned-bugs at mindrot.org
Reporter: tamileceguru at gmail.com
The SFTP client's ls -n command fails to display numeric UID/GID values
when the server supports the users-groups-by-id at openssh.com extension
(introduced in OpenSSH 9.1, commit 74b77f7). Instead, it displays
username and groupname strings, breaking the expected behavior of the
-n flag.
Expected Behavior
When using ls -n in SFTP, the output should display numeric UID and GID
values:
-rw-r--r-- 1 1000 1000 1234 Jan 15 10:30 file.txt
Actual Behavior
After OpenSSH 9.1, ls -n displays username and groupname strings:
-rw-r--r-- 1 username groupname 1234 Jan 15 10:30 file.txt
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list