Windows 10: Starting bash through cmd.exe myself starts as different user than directly starting bash...

Discus and support Starting bash through cmd.exe myself starts as different user than directly starting bash... in Windows 10 Ask Insider to solve the problem; So I'm having a weird little problem here. I'm trying to add bash to the new Windows Terminal and I noticed that if I open cmd in it first and then... Discussion in 'Windows 10 Ask Insider' started by /u/lucidpineapple, May 26, 2020.

  1. Starting bash through cmd.exe myself starts as different user than directly starting bash...


    So I'm having a weird little problem here. I'm trying to add bash to the new Windows Terminal and I noticed that if I open cmd in it first and then start bash from cmd, it starts bash with my Windows user, but if I start bash using my custom entry in its' settings (with the command being either "bash.exe" or "cmd.exe /c bash.exe"), it starts bash using my WSL user.

    I'm not really sure why the behavior is different depending on how I start bash so any help figuring this out would be much appreciated!

    submitted by /u/lucidpineapple
    [link] [comments]

    :)
     
    /u/lucidpineapple, May 26, 2020
    #1
  2. BN P Win User

    Bash start error 0x080070013

    Had anyone faced the same issue as I am ??

    Bash shell cant be started as an error appears. Which I have discussed before but with no solution.

    bash error posted earlier

    I have tried

    1. full uninstall and install of lxrun

    2. creating a new user id in windows login and tried after installing bash there.

    there is no issue I confirm regarding read/write permission of system.

    The same problem I faced once more and I get rid of it only after full system update.

    I once again request microsoft to take this bug seriously and make a way to get out of it.

    [Moved from Insider]
     
  3. mike927 Win User
    Bash on Ubuntu on Windows- how to start bash as login shell

    Hello,

    Currently I use build 14379. I would like to get know how to set my bash to start it as login shell as default. Now every time I run bash I have to type `bash --login` I just want to avoid it. Any ideas?

    Thanks in advance.
     
    mike927, May 26, 2020
    #3
  4. Starting bash through cmd.exe myself starts as different user than directly starting bash...

    Linux subsystem: bash starts as root

    Hi,

    I want to use bash in VSC, but it always starts as root, how can I make it start as the user I entered, when I installed it?

    Regards,

    Rico
     
    Schlumpfling42, May 26, 2020
    #4
Thema:

Starting bash through cmd.exe myself starts as different user than directly starting bash...

Loading...
  1. Starting bash through cmd.exe myself starts as different user than directly starting bash... - Similar Threads - Starting bash through

  2. Bingo bash

    in Windows 10 Software and Apps
    Bingo bash: Keeps kicking me out of game up to three times why https://answers.microsoft.com/en-us/windows/forum/all/bingo-bash/1e5dd1e5-4424-4ab0-bc5b-ab9274638382
  3. Execute command automatically directly at start of cmd?

    in Cortana
    Execute command automatically directly at start of cmd?: Is it possible that a command like "cd \... " so that I am directly in the selected directory after each startup? Befehl direkt bei Start von cmd automatisch ausführen?
  4. Bash Shell

    in Windows 10 Installation and Upgrade
    Bash Shell: Hi, I am using windows 10 Home on HP Laptop. I want to work with Linux Bash shell I tried to follow the link below https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10. I could complete till number 12 beyond that it did not work. Request...
  5. Bash or Powershell help with activating

    in Windows 10 Updates and Activation
    Bash or Powershell help with activating: Hello Everyone, I am having a hard time learning how to create a bash script that does the following: 1.) Automatically runs in elevated privileges if in an admin account. 2.) Activate Microsoft Office 2016 using a selected KMS or product key. 3.) Activate Windows 10 using...
  6. Windows 10 Insiders 19H1 Bug Bash starts on January 23

    in Windows 10 News
    Windows 10 Insiders 19H1 Bug Bash starts on January 23: Calling all Windows Insiders to gear up and start doing some awesome creepy crawly hunting! [ATTACH] The 19H1 Bug Bash runs from Wednesday, January 23 through Sunday, February 3, 2019, 11:59 PM PST. Help us in shaping the next evolution of Windows 10 — explore new and...
  7. Bug Bash Beat?

    in AntiVirus, Firewalls and System Security
    Bug Bash Beat?: Hello all: Several days in a row, my w10 was warned about "Bug Bash Beat"! What is "Bug Bash Beat"?? How should I respond? https://answers.microsoft.com/en-us/windows/forum/windows_10-security/bug-bash-beat/394e4460-4cd7-4c4f-a22f-04fdebf3e19c"
  8. cortana bashs google

    in Browsers and Email
    cortana bashs google: Hi Folks, Interesting position taken by MS, no google for Cortana Microsoft stops Google being used for Cortana searches - BBC News Roy 48756
  9. Registry is not starting from main .exe, RUN and in cmd

    in Windows 10 Support
    Registry is not starting from main .exe, RUN and in cmd: i have no idea what's making it not pop up im trying all the ways to get it to open, i tried: * regedit in run(win+r) * registry.exe in cmd with admin rights * clicking on the main .exe located in the windows folder 18138
  10. Choosing default for bash in cmd

    in Windows 10 Support
    Choosing default for bash in cmd: Hi all, I have installed git before, so as a side effect, mingw is also installed. Currently, if I type bash in cmd, I got in bash provided by mingw. Now I want to activate Linux subsystem on windows 10. The question is, can I set the default or configure what the bash...