paxwarrior.blogg.se

Box drive access from windows subsystem for linux
Box drive access from windows subsystem for linux













Note that that particular answer also has the chroot setup instructions. It's been a while since I tried it out, but I had it working for this answer for a different purpose. and the user shouldn't be able to escape it.

box drive access from windows subsystem for linux

However, you can launch WSL directly into this jail with something like: wsl -u root -e sh -c "cd /newroot exec /usr/sbin/chroot /newroot/" su - username Ext4 can be accessed from Windows smoothly by formatting it into NTFS. These are the most commonly used Linux file systems: Ext2, Ext3, and Ext4. MiniTool will help you explore each one by itself in this article. Ultimately I do believe you'll have to create a chroot jail. What is the best way to access Linux files from Windows 10 Many users are perplexed by the questions on this page. However, even with automounting turned off, if I recall correctly, the Windows drives can still be manually mounted since that functionality is provided by the WSL /init. That at least prevents the root user from being able "restart" the WSL instance. That said, I'd definitely start with a /etc/wsl.conf that includes: ĭisabling interop will be important for preventing a root user from calling the wsl.exe command from inside WSL. Install Windows Subsystem for Linux with the command, wsl -install. The mechanism for disabling automounting and interop is through the /etc/wsl.conf file, but, of course someone with root access to the WSL instance can still edit that and undo your changes.

box drive access from windows subsystem for linux

It will change on each reboot of Windows. That 192.168.75.62 is the virtual NIC address. That NIC is NATd behind the Windows network stack. WSL really is designed for Windows/Linux interop. 2 Answers Sorted by: 1 Yes, WSL is running in a Hyper-V VM with a virtual NIC. Completely turning off the ability for root to get access to the Windowsĭrives might be a bit tough.















Box drive access from windows subsystem for linux