LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-04-2010, 11:09 PM   #1
ankurs106
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
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...
 
Old 06-05-2010, 01:39 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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

Last edited by GlennsPref; 06-05-2010 at 01:44 AM. Reason: Welcome
 
Old 06-05-2010, 06:25 AM   #3
ankurs106
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Glenn

I will try this out
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reset the root password? aarsh Linux - Newbie 3 04-30-2010 07:16 AM
Reset Root password hbenway AIX 9 08-19-2008 04:13 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
reset root password powah Linux - Security 5 09-15-2006 01:30 PM
Reset Root password sdsouza Linux - Software 5 11-12-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration