HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Email notification on interactive logins?
Operating System - HP-UX
1833786
Members
2394
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 02:13 AM
10-11-2006 02:13 AM
Hi,
suppose a host that only needs interactive login for maintainance purposes (estimate is something like 3 logins per month), and I'd like to make the host send out an email to the two groups of users that are allowed to log on instantly when a login occurs.
access can be via either ssh or the gsp, and I don't know where a hook for doing this exists.
I think about using the 'users' monitor in EMS, but I'm not sure if it's the right thing [tm].
Does someone have alternative ideas / experiences for me?
Florian
suppose a host that only needs interactive login for maintainance purposes (estimate is something like 3 logins per month), and I'd like to make the host send out an email to the two groups of users that are allowed to log on instantly when a login occurs.
access can be via either ssh or the gsp, and I don't know where a hook for doing this exists.
I think about using the 'users' monitor in EMS, but I'm not sure if it's the right thing [tm].
Does someone have alternative ideas / experiences for me?
Florian
yesterday I stood at the edge. Today I'm one step ahead.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 02:26 AM
10-11-2006 02:26 AM
Solution
Why not just put an entry in /etc/profile or the user id's .profile to send an e-mail when a login happens?
This will work no matter how the login occurrs, be it from the console (via GSP lan console or whatever) or ssh or telnet.
I have not looked at the 'users' EMS monitor, so I can't give you much insight on that.
This will work no matter how the login occurrs, be it from the console (via GSP lan console or whatever) or ssh or telnet.
I have not looked at the 'users' EMS monitor, so I can't give you much insight on that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 03:34 AM
10-11-2006 03:34 AM
Re: Email notification on interactive logins?
On my linux server I have this at the end of root's .bash_profile:
echo "tail messages..." > logfile
tail /var/log/messages >> logfile
echo "who?" >> logfile
who -u >> logfile
mail -s "ROOT SIGNING IN..." gjwild@mydomain.ca < logfile
mesg n
Rgds...Geoff
echo "tail messages..." > logfile
tail /var/log/messages >> logfile
echo "who?" >> logfile
who -u >> logfile
mail -s "ROOT SIGNING IN..." gjwild@mydomain.ca < logfile
mesg n
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2006 02:01 AM
10-13-2006 02:01 AM
Re: Email notification on interactive logins?
The obvious is the hardest to see at times :)
I wanted to log every login and it's the easiest to do it in the login process :)
I put it in /etc/profile, and also check the SSH_CONNECTION and like variables.
I wanted to log every login and it's the easiest to do it in the login process :)
I put it in /etc/profile, and also check the SSH_CONNECTION and like variables.
yesterday I stood at the edge. Today I'm one step ahead.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP