01-25-2010
So why not exclude the local accounts that you need too?
I'm assuming that this is an audit requirement and you have to show that the policy is in effect, ie. passwords are set to expire after X days, when someone looks at your system but in reality, you're not abiding by it fully.
I've been there and it's usually easier to get an exception for those users that require it than to write whatever scripting is necessary to catch them all, or if it's a manual thing, to set your calendar to remind you to do it. Eventually, it will catch you and an automated process will fail because of an expired password.
Good luck.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok when I log in to my terminal I land in a dir. How can I change the dir that I start from when I login?
Thanks for the help, sure it is a no brainer for you guys
cd (5 Replies)
Discussion started by: lorcet222
5 Replies
2. UNIX for Dummies Questions & Answers
I want Red Hat Linux 7.2 prompt for new password at next login time.
How can I do this?????
passwd -f don't work for linux...... (4 Replies)
Discussion started by: rrivas
4 Replies
3. AIX
Hi,
I need to change some users login name in AIX. With solaris i donīt had problems, i have used "usermod". But in AIX the usermod command donīt have the same behavior. Can someone give me a tip on how to perform these changes?
Thanks in advance. (9 Replies)
Discussion started by: spacewalker
9 Replies
4. Shell Programming and Scripting
hi
by modifying /etc/shadow
how can I Force a change of password so that user has at least 1 week to login?
I did it by using:
echo "enter username to force password change"
read user;
chage -M 7 $user;
How can I do it by modifying /etc/shadow?? (6 Replies)
Discussion started by: tjay83
6 Replies
5. UNIX for Dummies Questions & Answers
I want to change login failure message, "login incorrect"
deny user login for user id tom
sudo passwd -l tom
type username and type password on login prompt
and then it will display login failure message "login incorrect"
console
############
login: tom
password:
login incorrect... (2 Replies)
Discussion started by: lifegeek
2 Replies
6. Post Here to Contact Site Administrators and Moderators
Hello,
How can i change my login ID? My login ID is younus_syed.
Thanks & Regards
Younus Syed (10 Replies)
Discussion started by: younus_syed
10 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi,
Can I change my login id having my current account alive?
I found one thread related to this which shows that it is possible.
I also agree that this is not done in normal terms.
Still, can I request for it?
I really dont want to lose my current account and my post count.
would... (1 Reply)
Discussion started by: clx
1 Replies
8. Shell Programming and Scripting
Hi,
I have a script called from php, which executes the following code:
basename $arxivo .doc > nombre
nom=`cat nombre`
antiword -t $arxivo > $nom.txt
rm nombre
The problem is that I do not antiword conversion. I guess the problem must be that the user does not have permissions... (2 Replies)
Discussion started by: uri_crack
2 Replies
9. Solaris
Hi there,
Is there a way to ask the solaris user to change passwordo n the first login. I am looking at how to do this for every single new user. (5 Replies)
Discussion started by: alvinoo
5 Replies
10. UNIX for Advanced & Expert Users
Hello everybody !
At the beginning - I hope everything will be understandable as I know that my english skills are not as good as I would like.
I use Manjaro Linux for one year, previously used Ubuntu for 6 years. Today I got an idea to create small USB electronic device but I don't know how... (6 Replies)
Discussion started by: halfboy
6 Replies
LEARN ABOUT CENTOS
lchage
lchage(1) General Commands Manual lchage(1)
NAME
lchage - Display or change user password policy
SYNOPSIS
lchage [OPTION]... user
DESCRIPTION
Displays or allows changing password policy of user.
OPTIONS
-d, --date=days
Set the date of last password change to days after Jan 1 1970.
Set days to -1 to disable password expiration (i.e. to ignore --mindays, and --maxdays and related settings).
Set days to 0 to enforce password change on next login. (This also disables password expiration until the password is changed.)
-E, --expire=days
Set the account expiration date to days after Jan 1 1970. Set days to -1 to disable account expiration.
-i, --interactive
Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration.
-I, --inactive=days
Disable the account after days after password expires (after the user is required to change the password). Set days to -1 to keep
the account enabled indefinitely after password expiration.
-l, --list
Only list current user's policy and make no changes.
-m, --mindays=days
Require at least days days between password changes. Set days to 0 or -1 to disable this requirement.
If this value is larger than the value set by --maxdays, the user cannot change the pasword.
-M, --maxdays=days
Require changing the password after days since last password change. Set days to -1 to disable password expiration.
-W, --warndays=days
Start warning the user days before password expires (before the user is required to change the password). Set days to 0 or -1 to
disable the warning.
EXIT STATUS
The exit status is 0 on success, nonzero on error.
NOTES
Note that "account expiration" (set by --expire) is distinct from "password expiration" (set by --maxdays). Account expiration happens on
a fixed date regardless of password changes. Password expiration is relative to the date of last password change.
libuser Nov 8 2012 lchage(1)