LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   My root password is getting reset after every reboot (https://www.linuxquestions.org/questions/linux-server-73/my-root-password-is-getting-reset-after-every-reboot-812251/)

ankurs106 06-04-2010 11:09 PM

My root password is getting reset after every reboot
 
Hi

I am using RHEL 5.4

my root password is getting reset after every reboot.
every time i had to change the password from kernel to access the root.

i am unable to find the where the problem is...........
plz help...

GlennsPref 06-05-2010 01:39 AM

Quote:

Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 3 million posts to search it's possible the answer has been given.
:)
I wonder if you set the age of passwod renewal, that might stop it.

my chage script...
Code:

#!/bin/bash
# ~/bin/chage
echo " ~/bin/chage"
echo ""
# Usage: chage [options] user
#
# Options:
#  -d, --lastday LAST_DAY        set last password change to LAST_DAY
#  -E, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
#  -h, --help                    display this help message and exit
#  -I, --inactive INACTIVE      set password inactive after expiration
#                                to INACTIVE
#  -l, --list                    show account aging information
#  -m, --mindays MIN_DAYS        set minimum number of days before password
#                                change to MIN_DAYS
#  -M, --maxdays MAX_DAYS        set maximim number of days before password
#                                change to MAX_DAYS
#  -W, --warndays WARN_DAYS      set expiration warning days to WARN_DAYS
sudo chage -E -1 glenn
sudo chage -W5 glenn
sudo chage -E -1 root
sudo chage -W5 root

for more info type

man chage

regards Glenn

ankurs106 06-05-2010 06:25 AM

Thanks Glenn

I will try this out


All times are GMT -5. The time now is 01:47 AM.