Here is what I have done:
Change a username in the last line:
tiny
toabc
tiny@tty7:~$ sudo vim /etc/passwd
- Change this:
tiny:x:1000:1000:tiny,,,:/home/tiny:/bin/bash
to this:
abc:x:1000:1000:tiny,,,:/home/tiny:/bin/bash
tiny@tty7:~$ sudo vim /etc/shadow
it shows:
[sudo] passwork for abc:
I didn't change my password but it can't login root!
I type Ctrl+Alt+F1 to
tty1
but neither tiny or abc can't login with my password
and I try to look at ls ~ -la
, here it shows like this:
drwxr-xr-x 28 abc tiny 4096 Apr 6 03:04 .
How can I login root? and why the user name in prompt tiny@tty7
still be tiny while in sudo it show the abc's password?