DPyro Share Posted August 31, 2016 (edited) I just upgraded windows subsystem for linux to the latest version and now I get this error when using sudo: sudo: no tty present and no askpass program specified sudo -S works. How to fix? Link to post Share on other sites
Mindovermaster Share Posted August 31, 2016 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. Link to post Share on other sites
Barney T. Administrators Share Posted August 31, 2016 What distro are you using. Some distros use su instead of sudo (such as Debian). SU is the command for "superuser". Link to post Share on other sites
Mindovermaster Share Posted August 31, 2016 Sudo -S sounds like arch to me. If sudo -S works, it should work without the -S... Link to post Share on other sites
Eric Veteran Share Posted August 31, 2016 I've never had it require administrator privileges. It defaulted to considering me root. (Since Ubuntu on Windows is technically an app it should have a different instance for each Windows user.) Link to post Share on other sites
DPyro Author Share Posted September 1, 2016 (edited) 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 September 1, 2016 by DPyro Link to post Share on other sites
Recommended Posts