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

BashWindows 10Windows Subsystem-for-Linux

Bash Problem Overview


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.

Bash Solutions


Solution 1 - Bash

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDave HamiltonView Question on Stackoverflow
Solution 1 - BashMatteoView Answer on Stackoverflow