Windows 10 - Bash (Ubuntu) SU (Root Password)

Dave Hamilton picture Dave Hamilton · Jun 3, 2016 · Viewed 80.7k times · Source

Recently updated to Windows 10, installed Ubuntu Bash. Wanted to start configuring, But I have hit a wall already.

When installed, you are asked for a username and password for your account. This creates a user level.

Is it possible to access to root user, SU?

Every time I try, it asks for a password, and none of the accounts on the PC work (i.e., Windows 10 admin account password does not work). Tried default passwords too etc., all fail.

The reason for it is when looking at the users home directory: When creating a file, it creates it under my Windows User Account (Permissions).

But when I view files created from Bash, they are created for Root user.

So this is the confusion, I modified bashrc and it's no longer owned by root, So it's not accessible.

But I cannot login to root to create or modify the files.

Am I being a complete noob or something? enter image description here

When bashrc is not owned by Root, when loading Bash.exe, I get .bashrc Input/output error.

Answer

Matteo picture Matteo · Jun 3, 2016

as far as i know you'll have to type "sudo su"