The Linux Administration group is for the discussion of technical issues technical issues that arise during the administration of Linux systems, including maintaining the operating system and supporting end-user applications.

Hi
boot the linux enter into single user mode
and modify the file
or
boot with the linux os enter into rescue mode
go the directory as it mention in like sys edit the /etc/passwd make the changes save it and reboot the machine you will login the machine with root

> One of my team member did a funny thing , he
> modified the first line /etc/passwd file. i.e root--->root1
>
> root:x:0:0:root:/root:/bin/bash -old
> root
> 1:x:0:0:root:/root:/bin/bash after modification
>
> I
> mean he modified root to root1 and he exited and now I am not able to logi
> n either root or root1, Can somebody please help me how do i replace it wit
> h the original . Or do i need to install again.

Why would you expect to be able to log in as root or root1 if
neither name is in the passwd file? The user name in the password
file is 1, just the number one. Try that.

Adishatz monde, hi ...
Did you try to enter "1" as the login name?
May be, it doesn't work in some distributions as the name "root" can be
define not only in the password file but also in the kernel.
I thinck you should be able to boot the PC on a live linux CD as knoppix
and then modify the /etc/passwd of your system, i don't thinck you can
modify it easily in single user mode as you need to enter root password
anyway.