HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- user account monitoring
Operating System - HP-UX
1838138
Members
3674
Online
110124
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
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
04-06-2000 04:35 AM
04-06-2000 04:35 AM
user account monitoring
Is there a easy way to monitor for such things as:
all active accounts
all accounts which have been inactive for more than 14 days
a list of accounts created and deleted in a specified time period
I would like to be able to create a report each month.
all active accounts
all accounts which have been inactive for more than 14 days
a list of accounts created and deleted in a specified time period
I would like to be able to create a report each month.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2000 05:38 AM
04-06-2000 05:38 AM
Re: user account monitoring
The last(1) command will display who has logged in recently as recorded in
/var/adm/wtmp. You might be able to use this information to generate some kind
of report, just parse the /etc/passwd file and run last on each user id.
Even better, though, is the TCB on a trusted-OS system. /tcb/files/auth
contains a file for every user, indicating the last time the user logged in,
failed to login, changed password, failed to change password, etc. I can't
imagine it would be too hard to write a script to go through all of these files
and generate a report.
You might also look into auditing (also a function of a trusted OS) for more
detailed monitoring.
If you aren't using a trusted OS, you can convert to a trusted OS in SAM (look
under auditing). You may or may not want to do this though. I'd recommend a
little research before making any drastic changes.
/var/adm/wtmp. You might be able to use this information to generate some kind
of report, just parse the /etc/passwd file and run last on each user id.
Even better, though, is the TCB on a trusted-OS system. /tcb/files/auth
contains a file for every user, indicating the last time the user logged in,
failed to login, changed password, failed to change password, etc. I can't
imagine it would be too hard to write a script to go through all of these files
and generate a report.
You might also look into auditing (also a function of a trusted OS) for more
detailed monitoring.
If you aren't using a trusted OS, you can convert to a trusted OS in SAM (look
under auditing). You may or may not want to do this though. I'd recommend a
little research before making any drastic changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2000 05:58 AM
04-06-2000 05:58 AM
Re: user account monitoring
If wtmp does not have good user info or has been trimmed, you can also check
for the date stamp of each user's shell history file in your script.
for the date stamp of each user's shell history file in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2000 05:41 AM
04-07-2000 05:41 AM
Re: user account monitoring
Here is source code to a short little program that will convert any number
passed to it into a date. The number is taken to be the number of seconds
since the Epoch (see ctime(3C) for more information).
If there's a shell built-in or utility standard w/ HP-UX that does this, I'd
love to hear about it.
It can be used to convert the number in the TCB to a real date:
#include
#include
int main(argc, argv)
int argc;
char **argv;
{
time_t time = atoi(argv[1]);
printf("%s\n", ctime(&time));
}
(in K&R since the basic HP compiler doesn't do ANSI)
$ ctime 0
Wed Dec 31 16:00:00 1969
$ ctime 955000000
Wed Apr 5 22:46:40 2000
passed to it into a date. The number is taken to be the number of seconds
since the Epoch (see ctime(3C) for more information).
If there's a shell built-in or utility standard w/ HP-UX that does this, I'd
love to hear about it.
It can be used to convert the number in the TCB to a real date:
#include
#include
int main(argc, argv)
int argc;
char **argv;
{
time_t time = atoi(argv[1]);
printf("%s\n", ctime(&time));
}
(in K&R since the basic HP compiler doesn't do ANSI)
$ ctime 0
Wed Dec 31 16:00:00 1969
$ ctime 955000000
Wed Apr 5 22:46:40 2000
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