- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Locked Account notification
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
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
03-13-2001 07:21 AM
03-13-2001 07:21 AM
Locked Account notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 02:18 PM
03-13-2001 02:18 PM
Re: Locked Account notification
AFAIK no way - at least no "nice" way of doing it.
The crude way could be like scanning all the users's
file below "/tcb/files/auth/?/" for the flag for being
locked and being "newer" than a flag-file:
find /tcb/files/auth/? -newer /tcb/lasttime -print |
while read name; do
if grep "u_lock..." >/dev/null
then echo $name |mailx -slocked-user root
fi
done
touch /tcb/lasttime
and schedule that via "cron" say, every half hour, or so.
I am just not certain about the "u_lock..." part, check
with a locked user on your system to get that right.
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2001 06:58 AM
03-14-2001 06:58 AM
Re: Locked Account notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2001 02:25 AM
03-19-2001 02:25 AM
Re: Locked Account notification
I do following:
Since all suspended users generate a message in /var/adm/syslog/syslog.log I do a tail -f of this file with a grep on "suspended for password violations". You can redirect the output to sendmail. Put all of this in the cron and here you are, the soup is ready!
Rgds,
DD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 08:44 AM
03-20-2001 08:44 AM
Re: Locked Account notification
/var/adm/syslog/syslog.log I do a tail -f of this file with a grep
on "suspended for password violations". You can redirect the
output to sendmail. Put all of this in the cron and here you
are, the soup is ready!
Rgds,
DD
In response to this reply. I do not know what you might have running to generate the message password violations to the syslog. I do not generate that msg when a user locks him/her out.