EXPIRY(1) User Commands EXPIRY(1)NAME
expiry - check and enforce password expiration policy
SYNOPSIS
expiry [-c] [-f]
DESCRIPTION
The expiry command checks (-c) the current password expiration and forces (-f) changes when required. It is callable as a normal user
command.
FILES
/etc/passwd
User account information.
/etc/shadow
Secure user account information.
SEE ALSO passwd(5), shadow(5).
User Commands 06/24/2011 EXPIRY(1)
Check Out this Related Man Page
NEWGRP(1) User Commands NEWGRP(1)NAME
newgrp - log in to a new group
SYNOPSIS
newgrp [-] [group]
DESCRIPTION
The newgrp command is used to change the current group ID during a login session. If the optional - flag is given, the user's environment
will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains
unchanged.
newgrp changes the current real group ID to the named group, or to the default group listed in /etc/passwd if no group name is given.
newgrp also tries to add the group to the user groupset. If not root, the user will be prompted for a password if she does not have a
password (in /etc/shadow if this user has an entry in the shadowed password file, or in /etc/passwd otherwise) and the group does, or if
the user is not listed as a member and the group has a password. The user will be denied access if the group password is empty and the user
is not listed as a member.
If there is an entry for this group in /etc/gshadow, then the list of members and the password of this group will be taken from this file,
otherwise, the entry in /etc/group is considered.
CONFIGURATION
The following configuration variables in /etc/login.defs change the behavior of this tool:
SYSLOG_SG_ENAB (boolean)
Enable "syslog" logging of sg activity.
FILES
/etc/passwd
User account information.
/etc/shadow
Secure user account information.
/etc/group
Group account information.
/etc/gshadow
Secure group account information.
SEE ALSO id(1), login(1), su(1), sg(1), gpasswd(1), group(5), gshadow(5).
User Commands 06/24/2011 NEWGRP(1)
How to create a mechanism that e-mails user/admin before password expiry. Assume 7 days in advance.
Thanks in advance for your great help.
Regards,
Awadhesh (4 Replies)
Hi all,
I want to write a shell script that read line by line of a file that have all domain names written, after reading complete file it will give us following output.
Domain Name Expiry Days-Left
abcd.com 20-Feb-200 6 10
How can i acheive that script... (6 Replies)
I couldnt find this in any other post - so hoping someone can help out.
I want to set password expiry (or rather I have to) for a number of users on my solaris 9 system. I know i can set the following options in the /etc/default/passwd file to do it and then just type a passwd -f <username> to... (6 Replies)
Hi All,
Could anyone please help me with the command or script for checking the password expiry for a particular userid on AIX.
Regards,
Sanjay...:) (5 Replies)
Does anyone know a simple way to find out the expiry date of my UNIX user password?
I do not have root access to the box.
Surely there is a way to so this... (4 Replies)
Hi,
Is there any way i can give an expiry date for files that i create? For example, i would like to get a file deleted automatically after 60 days from the creation date. Is there any possibility for this in Unix?
Thanks,
RRVARMA (3 Replies)
Hi all.
On our systems we use the password expiry through the shadow file. This was recently implemented and the first round of expiry has just arrived.
The problem that i have is that when users are attempting to log on to a box (directory through putty) there are no prompts displayed if... (13 Replies)
Hello folks,
I have question about my expiry of shell script, today date is 2009-11-11, i will have to deploy a script today, how i should setup that my script will not work after 2010-05-11, Between if someone will change the date of server then script will again not work, please give... (3 Replies)
The scope of the shell/perl script is to read the input text file. Validate the expiry date of each certificate and send the mail to the user. The user takes action to add the new certificate to the storage file and user owns the responsibility to update the input text file with the new certificate... (5 Replies)
Hi
When a new user is created and their password is set to require changing at first login, is it possible to expire the account if they don't login whithin 10 days ?
Thanks
Nigel (4 Replies)
Hi All,
I want to write a shell script to change the password on list of database servers, please guide me how do I achieve this.
Please see below sample, how it is asking while manually changing the password,
sqlplus test@oracle
SQL*Plus: Release 9.2.0.2.0 - Production on Thu Jun 16... (4 Replies)
Hi,
I would greatly appreciate it if someone can help me with my problem.
I have a crawler which collects spam URLs everyday & this data needs to be published in a blacklist.
Here's the catch:
The "Time To Live" (TTL) for each URL is 3 months (or whatever for that matter). If i see the... (5 Replies)
Hi All,
I am not able to access an oracle table even if the table is present. After initial analysis, found that there is a password warning for the specified oracle user. Can you please help me in ignoring the password expiry and access the oracle table ? However, the log file does not store the... (4 Replies)
Newbie in scripting
Please assist with a script to send an email to all users seven days before their passwords expires.Aging set for 90 days.
# chage -l user1
Last password change : Jul 08, 2015
Password expires :... (4 Replies)
I have been searching the web for the answer to this question but without joy.
Hopefully, someone here can point me in the right direction...
We have a number of application OS accounts which require to be set with password non-expiry via the chage command, such as for example...
chage -M 0... (7 Replies)