If you aren't afraid to play with the system, here's something you can
do.
Create a dummy account. Assign the dummy account the password that you
want to change root to.
open /etc/passwd and lookup the dummy account. Between the first and second
colon (:) is the encrypted new password. Copy that string verbatim into the
root
account. Save your work.
Delete the dummy account.
Try doing an su again, and you should find the password has changed. I'd
experiment once to be sure you did it right while you are actually at the
box, or if you have done a shadow password file.
Bill Ward
-----Original Message-----
From: Timothy Lillicrap [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 12:17 PM
To: [EMAIL PROTECTED]
Cc: recipient.list.not.shown; @nswcphdn.navy.mil
Subject: Changing root password remotely.
Hi I have two RH6.0 servers which I administer remotely from home. They are
in
a different city which is a 3.5-4 hour drive away. I would like to be able
to
remotely change the root password on these boxes, but I have run into a
problem...
I have to telnet to the boxes with a regular users acount and then su to get
root access (I think this is normal). Anyway, when I have sued to root and
give passwd root, everything appears to work properly. It asks me for the
new
password, and then asks me to reenter etc. Everything seems good.
However, when I log off and then log back in as a regular user, and then try
to
su to root using my new password, it doesn't work (the first time I did this
is
scared the **it out of me as I thought I'd locked myself out of the system).
All that had happened though is that the old password was still in place and
I
could get root just fine with that.
So my question is, what do I need to do change the password remotely????
Thanks
Timothy Lillicrap
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.