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 OSF1
yppasswd
yppasswd(1) General Commands Manual yppasswd(1)
NAME
yppasswd - change password in Network Information Service (NIS)
SYNOPSIS
yppasswd [name]
DESCRIPTION
Note
If Enhanced Security is enabled on your system, use the passwd command to change your password, even if NIS is in use.
The yppasswd command lets you change your password in the Network Information Service (NIS) map, a network data base service. Only you or
the superuser can change your NIS password.
When you enter the yppasswd command, the program prompts you for the old password and then for the new password. Note that the passwords
are not displayed on the screen.
Next, the program asks you for the new password again, to verify that you have typed it correctly. If you do not type the passwords cor-
rectly, you will receive an error message after you enter the new password.
Your new NIS password must meet one of the following requirements: It must be a combination of at least six alphanumeric characters, or It
must be a minimum of four characters, with at least one being non-alphanumeric, such as a control sequence.
Note
The passwd command does not change the NIS password. This command only changes the local password file (/etc/passwd), and not the NIS mas-
ter password file.
ERRORS
Your new password does not meet the minimum length requirement. You misspelled your new password or its verification. Your new password
can not be activated. It must be different from your old password and your login name.
FILES
Password file NIS directory
SEE ALSO
passwd(1), passwd(4), ypfiles(4), yppasswdd(8)
Network Administration
yppasswd(1)