You need to be root to do this but there is no single command available. From the /etc/security/passwd you get the information when the password for a particular user was set ("lastupdate"). You'd then check the user's attributes to find the intervall for a forced password change. With those two values and the current date you can calculate when the current password will be expired. Thus a script would probably be written around the following commands:
Search the script forum to find how to convert a date into seconds from epoch for easy comparison. You might even find several complete scripts there for accomplishing your aim.
Hi,
Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire?
Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These... (2 Replies)
Hi,
Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire?
Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These... (2 Replies)
Hi Gurus
I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails.
Resetting my password reenables the keys.
Do i need to do something to avoid this scenario or is this... (2 Replies)
Hi All,
I want to write a script that will send the alert when linux server password expiry for user 'x' is less than 12 days.
I have written the below script but this is not working for expiry date 04 july
script;-
P_EXPIRY_DATE=`chage -l msdp| grep 'Password expires' | awk ' {... (2 Replies)
Hi,
I would like to know is there command which will tell me when password will be expire and when last password was changed ?
like on linux chage -l <username? (2 Replies)
Hi,
Here's the version of unix that we are working on.
> uname -a
AIX yyyyyyyy 1 6 00F613E24C00
@:on(cluster303)/iishomea/kmani00->
i have application id: aaabbb
Now i need to check whether the password for the application id set to non expiry type or not.
Moreover, with that unix... (3 Replies)
Discussion started by: kmanivan82
3 Replies
LEARN ABOUT OSF1
yppasswdd
yppasswdd(8) System Manager's Manual yppasswdd(8)NAME
yppasswdd, rpc.yppasswdd - server daemon for modifying the Network Information Service (NIS) password file
SYNOPSIS
/usr/sbin/rpc.yppasswdd file [-m arg1 arg2...]
DESCRIPTION
The yppasswdd daemon is a server that handles password change requests from yppasswd(1). It changes a password entry in the specified file,
which is assumed to be in the same format described in passwd(4). An entry in file will be changed only if the password presented by
yppasswd(1) matches the encrypted password of that entry.
If the -m option is given, then after file is modified, a make(1) will be performed in /var/yp. Any arguments following the option will be
passed to make. The -m option should be set only at a NIS master server machine.
This server is not run by default, nor can it be started up from inetd(8). If it is desired to enable remote password updating for the
NIS, then an entry for yppasswdd should be put in the /sbin/init.d/nis file of the host serving as the master for the NIS passwd file.
SECURITY NOTE
When enhanced security is installed and NIS is used to distribute the protected password authentication database, the yppasswdd daemon man-
ages writes to that database. A strict C2 security policy, which is optionally configurable using enhanced security, requires each
user login or login failure to be recorded in the protected password authentication database. These updates, in combination with password
changes and system administration functions affecting user accounts, are coordinated by the daemon.
EXAMPLES
If the NIS password file is stored as /var/yp/src/passwd, then to have password changes propagated immediately, the server should be
invoked as: /usr/sbin/rpc.yppasswdd /var/yp/src/passwd -m passwd DIR= /var/yp/src
FILES SEE ALSO
Commands: yppasswd(1), ypmake(8)
Files: passwd(4), ypfiles(4)yppasswdd(8)