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

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
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.

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

Related

solana: command not found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am trying to build my validator for Solana. I installed Solana on the main user.
I created another user to restrict the access to sudo. I can run the Solana command from my main user but on the limited user it says command not found. does anybody know what is the problem?
The Solana install tool sets everything up in $HOME/.local/share/solana/install/active_release/bin and adds that directory to your $PATH in .profile. This directory is not in your other user's path, so it is inaccessible to the other user.
To solve this, you can:
redo the install steps as your other user
Or
add your main user's $HOME/.local/share/solana/install/active_release/bin to your other's $PATH, ie:
export PATH="/home/$MAIN_USER_NAME/.local/share/solana/install/active_release/bin:$PATH"
where $MAIN_USER_NAME is the name of the user that has installed the Solana tools.
Also, you can double-check the existing installation by running which solana as the main user.

Is there any way I can run CMD as administrator without admin privileges [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have windows 10 , need to open CMD as admin o that i can change admin password
.My lone admin account somehow changed to standard . Need to fix this issue .
When i boot in safe mode administrator account shows up asking for password , I believe i can change admin password by running cmd as admin and boot up again in safe mode and access the administrator account there .
THANKS IN ADVANCE
So this means you've locked yourself out of your admin account ?
If that's the case. There is a little trick you can use. Boot into a linux live system (partedmagic or anything else) then mount your Windows Partition. Navigate to system32 folder and search for cmd. Rename it to cmd2. then search for utilman.exe and rename it to cmd.exe rename cmd2 to utilman.exe and restart. Once done click the "Help Icon" on your lock screen. It will give you a cmd window with full admin permissions. Change Admin password and revert your changes
Hope this helps :)

Windows [10] File Folder Denied Access [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have a file folder called, my_folder it has been created by a program and has been made into a read-only access. I have admin rights to the computer I'm using but when I try to make it non-read-only it says that I don't have access to it. I've tried using Admin Command Prompt and deleting it with Admin rights in the File Explorer. The end goal is to delete the folder.
Here is the error I get when I try to delete it via the File Explorer:
And here is the error I get when trying to do the deletion via Admin Terminal:
$> rmdir my_folder
Access is denied
Permissions issues are my favorite Windows problems! Deleting with admin rights usually works for me. You might try taking ownership of the folder and trying again. If that fails try booting into safe mode.

How to reset the admin password for Ubuntu on Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have Bash Ubuntu on Windows 10. This is enabled by turning on the Developer mode feature so the normal non-programmer would likely not need this. I need to reset the password. I must have typed it wrong (twice, somehow) when I first set it up. How can I do that?
This has been answered HERE
Copying from their answer:
In Windows command prompt change the default user to root:
lxrun /setdefaultuser root
Now Bash on Ubuntu on Windows logs you in as root without asking password
Use passwd command in Bash to change the user password:
passwd your_username
Change the default user back to your normal user in Windows command prompt
lxrun /setdefaultuser your_username

How to make a Logon script secure in windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a logon batch script that runs a .reg file for all user when they log in. here's my script
#echo running
REGEDIT.EXE /S "C:\user_files\user.reg"
Now my concern is that the batch file itself is located in
C:\Windows\System32\GroupPolicy\User\Scripts
Every user has access to this directory. So anyone can change the batch and may cause security threat. Is there a way to make it more secure. or is can I do something similar with PowerShell scripting so there's no batch. If someone could point me to the right direction would be very helpful.
your script needs to be readable by your users, but you can take away their rights to modify it -- that's a typical file system feature that every Windows since NT has (aside from windows 9x, of course).
Hence, simply remove the write privileges from the user group in which your users are, and you're fine.

Resources