sliver icon indicating copy to clipboard operation
sliver copied to clipboard

Seeing << error >> instead of username on Linux hosts

Open Matir opened this issue 3 years ago • 2 comments

Looking at the list of sessions or whoami on a Linux session just returns << error >>.

Matir avatar Nov 13 '20 20:11 Matir

Ah, this appears on hosts where users are provided by a mechanism other than /etc/passwd, i.e., LDAP, and because when CGO is disabled, go falls back on directly parsing /etc/passwd.

Matir avatar Nov 13 '20 20:11 Matir

This is a limitation of the Go os.User package in my experience, so we'd need to add some type of User_linux.go extension.

moloch-- avatar Nov 16 '20 14:11 moloch--