HowTo: Create a Passwordless / Guest Login (Simple Method)  

Warning: Even though this method is simple (few steps), it is extremely dangerous if you don't know what you're doing. Do not attempt this if you are worried that you might mess up the /etc/shadow file, thus screwing up your Ubuntu system, possibly irreparably!

This is an oft-requested task, mainly for people who don't want to require less tech-savvy family members to have to remember passwords. It is a security risk, but I think people should at least know how to put their computers at risk if they want to. Don't blame me if anything bad happens.

Step 1
Make sure you have created a user. For the sake of this example, let's say you called the account username guest. You can give it any temporary password you want. We're going to change that password shortly anyway. I'm assuming you know how to do this already. If you don't, I can assure you that this HowTo is not one you should be following, and you would be very likely to screw up the next step.

Step 2
Next, go to the terminal and paste in this command:
Code:
sudo nano /etc/shadow
This will open the /etc/shadow file (the one that contains all the passwords) in a text editor called Nano.

Once you have it open, find the appropriate line for the account in question. It'll look something like this:
Code:
guest:$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0:13721:0:99999:7:::
Change the second part (in bold here) to match this second part (also in bold):
Code:
guest:U6aMy0wojraho:13721:0:99999:7:::
Then save the file (Control-X, Y, Enter).

Now you should be able to log into the guest (or whatever you called it) account without entering a password.

胡思乱想  

假期越来越无聊了,喜欢的人回家了,天天想。
回到家里呆了一个星期,应该还不到,就又回到了学校。满校准备考研的人,我都想加入进去了。
觉得没这个必要,再接着学习的话我就真的长不大了。