10-23-2015
Your suggestions could be set out as:-
- Compare today's /etc/passwd to yesterday (sort first for ease)
- Save current /etc/passwd to use tomorrow
You can then look for password expiry based on the content of
/etc/security/password It's a little awkward because:-
- The Last password change time is stored in seconds from 1/1/1970
- The expiry will be in weeks, either per user or in the default stanza
Using
/etc/passwd as a driver, you can read one stanza from
/etc/security/passwd with
grep -Ep "^$userid:" /etc/security/passwd although you then have to consider the points above to decide if the password is about to expire, depending also how you define 'about to expire'
Does this give you something to work with?
Robin
10 More Discussions You Might Find Interesting
1. Programming
How do I write a C program that will watch a directory for file creation/deletion? Maybe it would receive a signal when someone creates a file?
thanks,
Siegfried (5 Replies)
Discussion started by: siegfried
5 Replies
2. Solaris
Hi all,
I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin.
Name for the user Tivoli
Thanks & Regards
Babu (7 Replies)
Discussion started by: lbreddy
7 Replies
3. Programming
Hi,
I'm writing a monitor program that can be notified once a process makes an execve system call and then stop that process for examining before it starts to run the new code. I know I can ptrace a process to achieve this, but I do not want to ptrace every process in the system. Is it possible?... (1 Reply)
Discussion started by: aaron.lwe
1 Replies
4. Solaris
i am trying to create a user on solaris 10. it is not taking user name with more than ten characters. which file i need to edit to do this setting. (4 Replies)
Discussion started by: raynu.sharma
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Please help about writing a process that will be automatically notified by file creation in a predefined directory. Some code will appreciated.
Thanks for all. (4 Replies)
Discussion started by: echchatbi
4 Replies
6. Red Hat
Hi
Thanks in advance.
How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
I am using OpenLDAP for authenticating my postfix mail server. Now i have to clean up some resigned users from the LDAP directory. I have the list of common names (CN) with me, how can i delete the LDAP users form with that list.
Regards,
Hima Kiran (2 Replies)
Discussion started by: ghimakiran
2 Replies
8. UNIX and Linux Applications
Dear Concern,
Is there any built in tool/application/command available for Linux user account expiration notification purpose.
With Best Regards,
Md. Abdullah-Al Kauser (2 Replies)
Discussion started by: makauser
2 Replies
9. Shell Programming and Scripting
Can someone help me with a shell script that will send an email to a set of email ids when a user id is created or deleted on AIX system.
Also, if the script can let the admin know when a particular user id's password will expire. (2 Replies)
Discussion started by: ggayathri
2 Replies
10. UNIX for Dummies Questions & Answers
Dear All,
It would be really nice, if you could help me to write a script for deletion of list of user( more than 15000 users) stored in a file and sorted by email address( i need deletion of only a particular type of mail address).
Is the any script to write and take the file as input and... (3 Replies)
Discussion started by: Chand
3 Replies
LEARN ABOUT HPUX
icod_notify
icapnotify(1M) icapnotify(1M)
NAME
icapnotify - Test email connectivity to HP for Instant Capacity (iCAP) systems. Request a confirmation response email from HP. Turn config-
uration change notification and asset reporting on or off.
SYNOPSIS
icapnotify <reply_address>
icapnotify -a on|off
icapnotify -n on|off
Obsolescent:
icod_notify <reply_address>
icod_notify -a on|off
icod_notify -n on|off
DESCRIPTION
When a reply_address is specified, sends an asset report via email to HP, root, and the specified email address. Confirmation email is
sent from HP to the specified reply email address indicating that HP received the asset report email.
Note that asset reporting is optional but can be useful for viewing complexwide asset information at the HP Utility Pricing Solutions por-
tal (http://www.hp.com/go/icap/portal).
The deprecated command provides identical functionality to the command and is maintained for backward compatibility.
For detailed information on email configuration and requirements, see the located at /usr/share/doc/icapUserGuide.pdf.
Options
The command recognizes these options and arguments:
-a on|off Turns email asset reporting on or off. This option is used to specify if the Instant Capacity software should send asset
reports to HP via email. The command displays the present setting for this option.
-n on|off Turns configuration change notification on or off. If specified on, executing the command results in a configuration
change notification email sent to the system contact email address summarizing any configuration change. Configuration
change notification email can be turned off by specifying off. Configuration change notifications are not sent if the
system contact email address is not set.
EXTERNAL INFLUENCES
Environment Variables
o LANG determines the locale to use for the locale categories when both LC_ALL and the corresponding environment variable (begin-
ning with LC_) do not specify a locale. If LANG is not set or is set to the empty string, a default of C is used (see lang(5)).
o LC_CTYPE determines the interpretation of single- and multiple-byte characters.
o LC_MESSAGES determines the language in which messages are displayed.
If any internationalization variable contains an invalid setting, icapnotify behaves as if all internationalization variables are
set to C (see environ(5)).
International Code Set Support
Single- and multiple-byte character code sets are supported.
RETURN VALUE
The command exits with one of these values:
0 Command succeeded.
>0 Command failed; error message sent to STDERR.
EXAMPLES
Test email connectivity with HP by sending an asset report to HP, root , and super_user@corp.com, and request a confirmation email from HP
to be sent to super_user@corp.com:
icapnotify super_user@corp.com
Turn email asset reporting on:
icapnotify -a on
Turn email asset reporting off:
icapnotify -a off
Turn configuration change notification on:
icapnotify -n on
Turn configuration change notification off:
icapnotify -n off
AUTHOR
was developed by HP.
SEE ALSO
icapmodify(1M), icapstatus(1M), icapmanage(1M), icapd(1M), icap(5).
icapnotify(1M)