- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script for checking logins by certain users
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
06-18-2001 03:20 AM
06-18-2001 03:20 AM
script for checking logins by certain users
i need a script that tells me (by email)
what certain users (in 1 group) did (commands)
after each logout (of that user). It concerns all users
in 1 group on the system.
thanx!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2001 04:21 AM
06-18-2001 04:21 AM
Re: script for checking logins by certain users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2001 04:40 AM
06-18-2001 04:40 AM
Re: script for checking logins by certain users
and i'm no scripting-fan :/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2001 06:06 AM
06-18-2001 06:06 AM
Re: script for checking logins by certain users
the problem even with doing that is that you may not be able to get a $HOME/.logout command to work on HP-UX.
All in all, I'd say it's a pretty good task. It could be done....but.....not very easily.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2001 01:46 AM
06-20-2001 01:46 AM
Re: script for checking logins by certain users
Can't i use a script that starts archiving the commands from the moment those users login to the moment where they logout?
Any help is appreciated!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2001 02:28 AM
06-20-2001 02:28 AM
Re: script for checking logins by certain users
If you place a .sh_logout script in the user's home dir and trap the exit of the shell in the user's .profile
e.g.:
trap 'test -x ${HOME}/.sh_logout && . ${HOME}/.sh_logout; exit' 0
you should be able to put any commands in the .sh_logout script (such as mailing you the user's .sh_history file), which will be executed on the user's logout.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 05:00 AM
06-26-2001 05:00 AM
Re: script for checking logins by certain users
As a consultant, I could make something, and make it work. I have custom accounting software at many locations. However you are talking an easy 2-3 days development, and testing for what you are looking for. This would be to try and avoid smart users, but would still have problems if a user was really smart.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2001 05:14 AM
07-11-2001 05:14 AM
Re: script for checking logins by certain users
U may check out the man pages of
scripts command in HP-UX..
It saves all the commands issued by the user
and also its out put to a file.
Might be of interest to U..
Check it out
SUndar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2001 06:32 AM
07-11-2001 06:32 AM
Re: script for checking logins by certain users
What exactly are you watching for for this particular group? Is this just to keep an eye on them in general or to see if they are using commands that they arn't supposed to be using? If it is the later, it might be easier to make a shell for the group that only allows them to use a few choice commands (I remember seeing a thread or two on this a while ago).
Mark