Cannot run sudo command


Recommended Posts

I think you have to set up sudo for your account.

 

Log in to the system as the root user.

 

Create a normal user account using the useradd command. Replace USERNAME with the user name that you wish to create.


 

# useradd USERNAME

Set a password for the new user using the passwd command.

 

# passwd USERNAME 
Changing password for user USERNAME. 
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

 

This is in Microsoft subsystem for linux. It's something to do with tty not working to read the password, hence -s

 

EDIT: Apparently it's a known issues which has been fixed in latest insider build.

https://github.com/Microsoft/BashOnWindows/issues/927

Edited by DPyro
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.