View Single Post
Old 1st July 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472

Ok, I understand, Does the script I showed do what you want ?

Or do you need something more, that shows anyone the logs in, not just as "you", but other users or services ?
In your first post you said it was just you ,
Only ssh is permitted and I am the only person who would login. In Linux, I used this technique so that an email was sent every time someone logged in:

I have been doing some searches, and there is a lot of information, but what is not clear, exactly what you want the e-mail that gets sent to contain.
For example, if you want to get a e-mail notice , if and when someone logs in as root,
you can do that, but it opens a can of worms since there are services that the system uses, and they log in as root, you end up getting a huge amount of e-mails,....
I am not any expert at all, but if some expert wanted to help you configure the system to send e-mail notices, that can be done, however they would need a more clear description as to what the notices should contain.

Here are some links that might help you:
BSD Authentication, otherwise known as BSD Auth, is an authentication framework and software API employed by OpenBSD and accompanying software such as OpenSSH. It originated with BSD/OS, and although the specification and implementation were donated to the FreeBSD project by BSDi, OpenBSD chose to adopt the framework in release 2.9. Pluggable Authentication Modules (PAM) serves a similar purpose on other operating systems such as Linux, FreeBSD and NetBSD.
There is a lot more, use the keywords:
BSD auth for OpenBsd
In a search engine, you should get quite a few results.
My best friends are parrots
Reply With Quote