Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 - Bash (Ubuntu) SU (Root Password) [closed]

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.

like image 606
Dave Hamilton Avatar asked Jun 03 '16 08:06

Dave Hamilton


People also ask

How do I reset my Ubuntu password on Windows 10?

You now want to change the password of your account type, passwd [username] and follow the instructions to reset your password. Close the Ubuntu shell. Now when you open your Ubuntu shell your profile will default open to yours and the password will be reset.

What is the root password for WSL Ubuntu?

The root user in WSL is unlocked and doesn't have a password set. This means that you can switch to the root user and then use the power of root to reset the password.

What do I do if I forgot my WSL password?

To change or reset your password, open the Linux distribution and enter the command: passwd . You will be asked to enter your current password, then asked to enter your new password, and then to confirm your new password.

What is the password for su Ubuntu?

So, what is the default root password for Ubuntu Linux? Short answer – none. The root account is locked in Ubuntu Linux.


1 Answers

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

like image 190
Matteo Avatar answered Nov 07 '22 15:11

Matteo