Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2796

Creating a new top level Admin User for Ubuntu on WSL

$
0
0

Swapping standard Ubuntu for win-10 w/ "WSL Ubuntu"

For 5 years I booted to Ubuntu Distros with a GUI desktop, however; this year, my professor has forced me to add Windows to my machine. In the past I would dual boot the two, however, as I am sure most of you are likely to already know, several Linux distros have been made available for use by developers working in "Windows 10" environments", therefore, I decided to set up WSL rather than dual booting.

The Status of my Machine's Operating System

So I was setting up WSL, and referring to the docs here Official Ubuntu page on WSL whenever I had trouble. I couldn't log into Ubuntu for whatever reason, however WSL & Ubuntu seem to be working fine, so I just used the worlds most famous Linux work around, and logged in as root (which required me to set the default user to root). The problem is, I can't get the initial prompt back to enter a username & password, which, from what I understand, is how a new user is properly created for the virtual WSL Ubuntu instance.

In-depth Explanation of the Question at Hand

I have never done this, so I don't know what a proper default sudo/admin account should look like on an "Ubuntu Operating System" that runs in a Windows-10-subsystem. Its it necessary that I get the prompt back, or can I set up a new user on my own? If I do set up a new user on my own then, what is the correct way to configure the top-level Admin account (aka Sudo-account) for a WSL instance of Ubuntu.

Things about the configuration that are not exactly clear to me include:

  1. Should the account be a system account, and should it use an arbitrary name assigned by ubuntu?
  2. Should the account have a home directory?
  3. Is the sudo-group admin:sudo the only group that the top-security-level admin account (aka Sudo-account) needs to be added to, should I make another group with the same name as the Admin account I am creating?

Viewing all articles
Browse latest Browse all 2796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>