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

Turn on sshd authentication logging by default #18

Open
sunshowers opened this issue Mar 8, 2023 · 0 comments
Open

Turn on sshd authentication logging by default #18

sunshowers opened this issue Mar 8, 2023 · 0 comments

Comments

@sunshowers
Copy link
Contributor

sunshowers commented Mar 8, 2023

In a discussion in #oxide-q&a on 2023-03-08, it came up that our helios engvm doesn't have sshd authentication logging turned on by default. We should consider changing the default so that sshd auth logging is turned on.

Meanwhile, to do so manually:

  1. Add the following to /etc/syslog.conf:

    auth.info	/var/log/authlog
    

    (The separator MUST be a tab character, not spaces.)

  2. Restart the syslog service: svcadm restart system-log.


Additional debugging

In the discussion mentioned above, it turned out that there's a bug in SMF that caused the syslog service to not be functioning at all. To see if you've hit that bug, run cat $(svcs -L system-log:default). The output below indicates a bug:

[ Mar  8 21:40:11 Stopping because service restarting. ]
[ Mar  8 21:40:11 Method property group 'stop' is not present. ]
[ Mar  8 21:40:11 Method property group 'start' is not present. ]

To work around the bug, run:

svcadm disable system-log:default
svccfg delete system-log
pfexec svccfg import /lib/svc/manifest/system/system-log.xml
svcadm enable system-log

After performing the above steps, and with the auth.info line in /etc/syslog.conf, I started seeing entries in /var/log/authlog.

cc @jclulow, @wesolows

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

No branches or pull requests

1 participant