The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 6,504     Votes:  8 
Tags: 20.04   permissions   windows-subsystem-for-linux   nginx  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1376864
Title: Ubuntu 20.04 on WSL2: Folder owner & group are being reset after each start
ID: /2021/11/21/Ubuntu-20.04-on-WSL2_-Folder-owner-_-group-are-being-reset-after-each-start
Created: November 21, 2021    Edited:  November 21, 2021
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


From Stack Overflow:

To enable changing file owners & permissions, you need to edit
/etc/wsl.conf and insert the below config options:

   [automount]   
   options = "metadata"   

This may require restarting WSL (such as with wsl --shutdown) or the
host machine to take effect. This has been possible since 2018.

Please visit the link above for the full answer plus the two other answers which you may prefer.

Also consider new method announced by Microsoft in 2018. This method goes into even more depth and involves the mount command.

⇧ Use cron to get SE Data Explorer data when it's updated Unmet dependencies. Try 'apt --fix-broken install'- Conflict in linux-image  ⇩