06-24-2016
Force to reset password after expire
Hi Lads,
I would like place the mechanism of force reset password to user when he login to the server after his password expired. Currently, We are resetting users once in every 60 days using cron job but I am thinking is there any other way to force reset passwords after it expires? I am using solaris 10 and 11 in my servers. Any ideas would be appreciated. I am not using and central authentication mechanism like LDAP. We are using local logins.
Thanks in advance.
Naveen.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
login: TEST7
TEST7's Password:
Your password will expire: Wed Feb 19 14:28:08 2003
How can I the same information become in a script (as example
in the .profile)?????????
My login starts with .profile. These File is a menue with 24 lines and the message " Your password ....." disappear
to... (8 Replies)
Discussion started by: Erwin Stocker
8 Replies
2. UNIX for Advanced & Expert Users
Hi,
How to disable passwd expire in HP UNIX by not using SAM ?
In our system SAM have some strange bugs. However due to some reason, we cannot add that patch.
B. Rgds
Christina (3 Replies)
Discussion started by: christina fung
3 Replies
3. Shell Programming and Scripting
Hi,
Is there any way to find out the UNIX user's password expire date?. It'll we helpful to inform the users to change the password before it get expires.(FYI - I am not having only admin previlege.) (1 Reply)
Discussion started by: sharif
1 Replies
4. Solaris
Hello
I want to set the password for user never expire through the command line. For your information the box is running under Solaris 8 platform. (2 Replies)
Discussion started by: shamsul
2 Replies
5. Red Hat
Hi All,
Is this true on chage command?
-M, MAX_DAYS
Passing the number -1 as MAX_DAYS will remove checking a password's validity.
Does this means password will not expire anymore?
Thanks for any comment you may add. (0 Replies)
Discussion started by: itik
0 Replies
6. Solaris
Hi,
I have a small problem that I need to address regarding the password expiration for a number of different oracle accounts. Currently I have the MAXWEEKS set to 12 in the /etc/default/passwd file for all accounts. I also have sudo installed on the server and users access the oracle accounts... (2 Replies)
Discussion started by: sparcman
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
I am using sftp in batch script for which all configuration for public/private keys are done and it works fine without asking a password. No issues till this point. Now I the problem I have is that if the password expires/someone changes the authentication keys at reote server then the... (4 Replies)
Discussion started by: coolwade
4 Replies
8. AIX
Does anyone know if the default message displayed when a users password has expired can be changed? I am just assuming the message below is the default one. If so please tell.
Using username "justinxx".
justinxx@160.23.12.44's password:
WARNING: Your password has expired.
You must... (2 Replies)
Discussion started by: juredd1
2 Replies
9. Shell Programming and Scripting
hey Guys, I haven't posted in a while, But you guys were really helpful alst time.
I have had a issue with User Passwords expiring, and since I dont check /var/cron/log on the regular I never know these suers are expiring, making certain nightly jobs not run.
With this script, I want to be... (14 Replies)
Discussion started by: gkelly1117
14 Replies
10. Forum Support Area for Unregistered Users & Account Problems
I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login.
Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies
LEARN ABOUT DEBIAN
logins
logins(1M) System Administration Commands logins(1M)
NAME
logins - list user and system login information
SYNOPSIS
/usr/bin/logins [-admopstux] [-g group...] [-l login_name...]
DESCRIPTION
This command displays information on user and system logins known to the system. Contents of the output is controlled by the command
options and can include the following: user or system login, user id number, passwd account field value (user name or other information),
primary group name, primary group id, multiple group names, multiple group ids, home directory, login shell, and four password aging param-
eters. The default information is the following: login id, user id, primary group name, primary group id and the account field value. Out-
put is sorted by user id, system logins, followed by user logins.
OPTIONS
Options may be used together. If so, any login that matches any criteria are displayed.
The following options are supported:
-a Add two password expiration fields to the display. The fields show how many days a password can remain unused before it
automatically becomes inactive, and the date that the password expires.
-d Selects logins with duplicate uids.
-g group Selects all users belonging to group, sorted by login. Multiple groups can be specified as a comma-separated list. When
the -l and -g options are combined, a user is only listed once, even if the user belongs to more than one of the selected
groups.
-l login_name...Selects the requested login. Multiple logins can be specified as a comma-separated list. Depending on the nameservice
lookup types set in /etc/nsswitch.conf, the information can come from the /etc/passwd and /etc/shadow files and other
nameservices. When the -l and -g options are combined, a user is only listed once, even if the user belongs to more than
one of the selected groups.
-m Displays multiple group membership information.
-o Formats output into one line of colon-separated fields.
-p Selects logins with no passwords.
-s Selects all system logins.
-t Sorts output by login instead of by uid.
-u Selects all user logins.
-x Prints an extended set of information about each selected user. The extended information includes home directory, login
shell and password aging information, each displayed on a separate line. The password information consists of password
status (PS for password, NP for no password or LK for locked). If the login is passworded, status is followed by the date
the password was last changed, the number of days required between changes, and the number of days allowed before a change
is required. The password aging information shows the time interval that the user receives a password expiration warning
message (when logging on) before the password expires.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
SunOS 5.10 5 Jul 1990 logins(1M)