-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Write to utmp/wtmp when an interactive session is opened by Teleport #3987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 This is the biggest request I get from our engineering team. We have a number of tools and scripts that use |
Both human users and downstream tooling such as log aggregators/SIEMs rely on utmp/wtmp to analyze and debug resource utilization and performance issues on shared systems, as well as monitor user behavior for security forensics. Although the Audit Log partially mitigates this, Teleport's lack of utmp/wtmp significantly disrupts Unix users' muscle memory for w/who/last and ambient awareness of other users. This would also introduce friction in analyzing attacker behavior during a real-time security incident response. Other solutions such as OpenSSH and Smallstep populate utmp/wtmp as expected. |
Lacework has confirmed that they use utmp/wtmp to monitor system logins. That means customers using Lacework would be blind to all Teleport-based login activity in Lacework. |
+1 this is a big annoyance to our users/engineers |
We plan to address this issue when we work on #3814 |
Started investigating and it seems like openssh does this by using this C header which defines the structure of the utmp and wtmp files and manually adds an USER_PROCESS entry once a connection is authenticated. On exit, the daemon marks the entry as DEAD_PROCESS. I'll get working on this. |
Implemented and merged to master. |
In 6.0.1 there's still nothing to utmp/wtmp from Teleport for me? |
Did you upgrade your Teleport nodes? Just doing auth/proxy won’t work. |
Feature Request
Traditional Unix login systems like
getty
andsshd
write entries to the utmp file when an interactive session is opened. This is used to construct the output of commands likew
andwho
which show the users currently logged into the system.Teleport doesn't write entries to
utmp
when interactive sessions are opened, meaning that you can't see who's logged into a system using traditional Unix tools. It would be nice for Teleport nodes to update theutmp
file in the same waysshd
does.Output of
who
when logged in viasshd
:Output of
who
when logged in viateleport
:Motivation
Teleport is essentially positioned as an
sshd
replacement, so it should have a reasonable level of feature parity withsshd
. It's also quite confusing that sessions appear inw
/who
/last
etc when you use Teleport to log into nodes runningsshd
, but not when you use Teleport to log into nodes runningteleport
.Who's it for?
OSS User, Pro, Enterprise
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: