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?
When bashrc
is not owned by Root, when loading Bash.exe
, I get .bashrc Input/output error
.
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.
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.
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.
So, what is the default root password for Ubuntu Linux? Short answer – none. The root account is locked in Ubuntu Linux.
as far as i know you'll have to type "sudo su"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With