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

autolog.conf #72

Open
pyllyukko opened this issue Dec 31, 2020 · 4 comments
Open

autolog.conf #72

pyllyukko opened this issue Dec 31, 2020 · 4 comments
Labels

Comments

@pyllyukko
Copy link
Owner

No description provided.

@pyllyukko
Copy link
Owner Author

Can't seem to get autolog working:

user: pi         pts/1      1
now:  1615411693 = Wed Mar 10 23:28:13 2021
No match for process

@pyllyukko
Copy link
Owner Author

pyllyukko commented Dec 20, 2021

Autolog uses utmp which is probably not used by all programs anymore due to logind. At least SSH seems to still update it. We need to gather a list of various software and whether they still write entries to utmp or not.

@pyllyukko
Copy link
Owner Author

pyllyukko commented Dec 20, 2021

Supplementary groups (such as users) can't be used (see JKDingwall/autolog#1) as Autolog functions as follows:

  • Get struct passwd from username
  • Get struct group with passwd->pw_gid (primary group)
  • Check against autolog.conf

This kinda limits the usefulness of Autolog, but maybe we could still specify e.g. all sessions in tty[0-9]+.

@pyllyukko
Copy link
Owner Author

It also needs to be tested whether this would break some graphical environments. With Debian & Gnome you have the following:

$ loginctl 
SESSION  UID USER SEAT  TTY
      4 1000 XYZ  seat0 tty2

1 sessions listed.
$ w
 10:55:11 up 3 days,  2:46,  2 users,  load average: 1.31, 1.26, 1.23
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
XYZ      tty2     tty2             Mon08    2days  0.09s  0.09s /usr/libexec/gnome-session-binary --systemd

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

No branches or pull requests

1 participant