--- pinned: true title: "Access to a computer from USB key" description: "Somebody with a USB key can take control of your computer" authors: ["glegoux"] time_reading_minutes: 5 category: "Security" --- Imagine that you are in one of the following situations: 1. You have forgotten your password to connect to the personal workspace of your computer, and you want to reset it. 2. After a wrong manipulation, you can not access the personal data of your computer, and you want to retrieve this access. 3. You found a computer without supervision for which you are not the owner, but you want to see the file system's content. With a bootable USB key on Ubuntu, you can resolve these situations by first mounting the file system of the targeted computer with all permissions, then changing the password of any local user, and finally by connecting to the targeted workspace and exploring the file system. First, plug your USB drive into the target computer and select your key as the boot device. This will enable the target computer to boot into the Ubuntu system on your USB drive. On a DELL computer, press `F12` to access this selection. This information is visible on the welcome screen of your computer's manufacturer. {% include content/image.html title="DELL welcome screen" src="welcome-screen-dell.png" %} Start by choosing the following option: {% include content/image.html title="Advanced startup options" src="hack1.png" %} Then select the `recovery mode`: {% include content/image.html title="Getting started in recovery mode" src="hack2.png" %} Launch a `root shell`: {% include content/image.html title="Choosing the root shell" src="hack3.png" %} You access a device as a `root` user.