Darren's Notebook

This is a place to capture my thoughts and views on spirituality, software development, faith, technology, and family.

  • Home
  • About Me

Wednesday, July 3, 2019

Gaining Root Access on Windows Subsystem for Linux

Recently I corrupted my /etc/sudoers file in bash on Windows Subsystem for Linux (WSL). I was unable to fix the file from the bash prompt because the corrupted file prevented me from running anything with elevated privileges. I found the commands below from this post.

wsl -u root
# nano /etc/sudoers
Posted by Darren Hale at 1:13 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Blog Archive

  • ►  2021 (1)
    • ►  October (1)
  • ►  2020 (24)
    • ►  September (3)
    • ►  August (3)
    • ►  July (1)
    • ►  June (2)
    • ►  May (4)
    • ►  April (6)
    • ►  March (5)
  • ▼  2019 (2)
    • ►  August (1)
    • ▼  July (1)
      • Gaining Root Access on Windows Subsystem for Linux
  • ►  2018 (3)
    • ►  September (1)
    • ►  May (1)
    • ►  January (1)
  • ►  2017 (9)
    • ►  November (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2016 (11)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
    • ►  May (3)
    • ►  April (2)
    • ►  February (3)
  • ►  2015 (11)
    • ►  October (3)
    • ►  September (2)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
Simple theme. Theme images by Dizzo. Powered by Blogger.