Computing.Net > Forums > Linux > Change password

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Change password

Reply to Message Icon

Name: Andy
Date: August 20, 2003 at 00:29:45 Pacific
OS: RH8
CPU/Ram: 586
Comment:

I want to have a script to force the users to regularly change the login password on RH 8 , anyone can post the script for me ?

I tried chage , it is great problem , it don't allow two users or above to change password at the same time , it will hold at the below screen , can suggest what is wrong in our system ? thx

login: user2
You are required to change your password immediately (root enforced)

my command is

# chage -d0 userid1
# chage -d0 userid2

But when userid1 is changing the password, then userid2 can't change the password at the same time , we have about 200 users so it is a great problem of us , can suggest how to solve it.

i tried -M0 , but it still have the same problem , it don't allow two users change the password at the same time - when a user hold at the change password screen , then other user can't change the password at the same time , is there other solution ? thx



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: August 20, 2003 at 07:14:28 Pacific
Reply:

Why use a script? You can set passwords to
expire after x amount of days so the user
has to change them...."man passwd" for more
details.


0

Response Number 2
Name: ust
Date: August 20, 2003 at 17:51:34 Pacific
Reply:

Thx reply , but how to send the warning message to the user (eg. 5 days )before the password expiry ? thx.


0

Response Number 3
Name: 3Dave
Date: August 21, 2003 at 03:36:35 Pacific
Reply:

Use the "-w" switch to set the amount of
warning days before the expiration date. Eg
to set a password to expire after 30 days
with a 5 day warning:
# passwd -x 30 -w 5 username


0

Response Number 4
Name: ust
Date: August 21, 2003 at 04:04:06 Pacific
Reply:

Thx reply , but my problem is the warning message will be disappear very fast , the user can't read the message , hv you encounter the same problem ? can suggest what can i do ? thx.


0

Response Number 5
Name: 3Dave
Date: August 21, 2003 at 04:53:10 Pacific
Reply:

Works fine on my PC. Are you using text or
graphical login?


0

Related Posts

See More



Response Number 6
Name: ust
Date: August 21, 2003 at 06:20:53 Pacific
Reply:

I run RH8 text mode , what is your linux version ?

In my RH8 , no passwd -x function , what is our difference ? can suggest other solution ? thx.


0

Response Number 7
Name: ust
Date: August 21, 2003 at 06:57:58 Pacific
Reply:

is there other method to give warning message to user ? thx .


0

Response Number 8
Name: 3Dave
Date: August 21, 2003 at 07:12:06 Pacific
Reply:

I'm running slackware 9.0 with a text
login. Here is what I get when logging in
as a test user with the password set to
expire in one day:

davidhume login: test
Password:
Linux 2.4.20.
Last login: Thu Aug 21 12:50:27 +0100 2003
on tty2.
Your password will expire tomorrow.
No mail.

test@davidhume:~$


The "Your password will expire tomorrow"
stays on the screen above the prompt.
Perhaps your system is clearing the screen
just before displaying a shell
prompt...look in your profile and bashrc
files.

If I type "passwd -x" with no other options
I receive:
passwd: option requires an argument --
x


I have also noticed that kuser can also set
expiration days for passwords....if you
have KDE installed you could give that a
try.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Change password

change password fr xp home to samba www.computing.net/answers/linux/change-password-fr-xp-home-to-samba/16111.html

RedHat 7. Changing Passwords... www.computing.net/answers/linux/redhat-7-changing-passwords/17068.html

Change Unix password by scripts www.computing.net/answers/linux/change-unix-password-by-scripts/28430.html