Skip to content
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

report->user_local is always true #140

Open
mmilata opened this issue Nov 29, 2013 · 4 comments
Open

report->user_local is always true #140

mmilata opened this issue Nov 29, 2013 · 4 comments

Comments

@mmilata
Copy link
Contributor

mmilata commented Nov 29, 2013

Either find out what was this field supposed to mean and set it accordingly, or remove it.

@mtoman
Copy link
Contributor

mtoman commented Dec 2, 2013

To be honest, I don't remember, but it's one of the following:

  • User is logged in locally (console, terminal emulator...) vs. remotely (SSH, telnet, rlogin...)
  • User has a local account (/etc/passwd) vs. user account comes from the network (LDAP, AD, NIS+...)

@mmilata
Copy link
Contributor Author

mmilata commented Dec 2, 2013

I think it's the first one. How can we detect that user is logged in remotely?

@mtoman
Copy link
Contributor

mtoman commented Dec 2, 2013

A very simple approach would be assuming remote login <=> SSH and check for SSH_* env variables. I'll check for a more generic way to do that.

@mtoman
Copy link
Contributor

mtoman commented Dec 2, 2013

So after a quick look, SSH sets SSH_* env variables, while telnet, rsh, rlogin and rexec set REMOTEHOST env variable. Are there any other means of remote login that we should consider? What about eg. VNC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants