RE: Rest Root Password

elaps

Joined
Aug 19, 2008
Messages
13
Likes
0
Points
0
#1
Somehow I screwed up and changed the root password. How can I change it without having to reinstall the whole system.
 

danardf

Joined
Dec 3, 2007
Messages
8,069
Likes
10
Points
88
#2
I think that, with the single user mode, but maybe another solution.
Make an new installation (VMWare, or hard), so root and password.
Mount your HDD (root account lost) from your new install.
copy 2 files:
/etc/passwd
/etc/shadow
or
Modify only the root's line on every file with the good line from the new install.
 

fdiogo

Joined
Sep 7, 2008
Messages
52
Likes
0
Points
0
#3
if you have acess to console you only need to run "passwd" and enter the new password for root....

Diogo
 

danardf

Joined
Dec 3, 2007
Messages
8,069
Likes
10
Points
88
#4
Yes only on single user.
I don't know how .... on the old unix, on starting boot kernel, make a CTRL + d, and the kernel start on single user mode (root by default), and into this mode, you could make passwd command. Now, I don't know if is the same thing! :huh:
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,938
Messages
130,959
Members
17,631
Latest member
nabeel
Top