Saturday, 23 November 2013

LOGIN WITHOUT PASSWORD IN LINUX



                                    LOGIN WITHOUT PASSWORD



We normally login as

Login :root
Passwd ----------

]#


But to login without password
[there is a file in a [/etc/passwd] this file conatain all the password informations for all the users. Open the file that contain a [X] follow by the user name like [root:x:0:0: ] simply delete the [X] carefully and it will not ask for the password but when we reassign the password for the user this [x] will come back again to its position.

So by deletion the [X] for the particular user you can loginby that user without enter a password.


Now how to do_________________________________________________________

#vi /etc/passwd

   root:x:0:0:root:/root:/bin:.bash


Delete this x only and the following appears

root::0:0:root:/root:/bin:.bash



:wq! __________ save n exit

Now you can login the root without a password

Login : root

]#


Now if you make more users then to check there entries in the [passwd] file
Press [shift+g] to go to bottom.

0 comments:

Post a Comment