As you probably know, the newest versions of Windows 10 allow one to add a separate Linux operating system to be used directly from Windows. It was possible to access such systems with the command shell for quite a while, but the newest releases of Windows 10 make it possible to browse the Linux files with Windows Explorer, too:
(As of this writing, this feature is only available for the Windows Insider users, but it's expected to become available for all users in the next major Windows 10 update.)
While this is a very handy feature, you probably don't want someone getting hold of your PC to mess around with your Linux files that easily. Wouldn't it be nice to protect access to the Linux file system with a password? As usual in such a situation, Folder Guard is to the rescue!
How to protect a Windows Linux folder with password
The easiest way to set up a password for the Linux folder is to drag that folder with the mouse and drop it over the Folder Guard application window. Don't do it for the very top level item named Linux, because that's a virtual folder that cannot be protected, but you should be able to do it for the folder representing the Linux distribution (Ubuntu-18.04 in our example below.) If you want to protect a specific subfolder deeper within the Linux file system, you can drag such a folder, too, instead of the root folder of the distribution. Also make sure that the Locked view (the one that contains the list of the password-protected folders) is active within the Folder Guard application. After you've dropped a Linux distribution folder over the Folder Guard window, it should start the usual password protection wizard automatically:
Don't be alarmed when you see that the path of the folder to protect starts with \\wsl$: this is the name of the internal virtual network server that Windows creates specifically to offer access to the Linux files via the Windows file system. Press Next to specify the password, and then to select the desired properties for the password (you can find more information about the password options in the User's Guide.) :
As you can see, setting up a password for a Linux folder is not different from password protecting any other Windows folder. After you've finished the wizard, the Linux folder you've just protected should appear in the Locked view of Folder Guard:
Press Protect (or Apply) button in Folder Guard toolbar and the protection of the folder should take place after that. Try opening the Linux folder with File Explorer and you should see the familiar Unlock button:
Press the Unlock button, enter the password, and the access to the Linux file system should be granted:
Notice the Lock button that appears in the title bar of File Explorer: just like with other Folder Guard protected folders, you can use this button to lock the folder back after you are done working with the files it contains.
That's all it takes to set up a password for a Linux folder. Keep in mind that such password protection works only when you are trying to access the Linux folders with File Explorer. If you were to use the command shell window, you would NOT see the password prompt:
The technical reason for such a behavior is that, unlike File Explorer, the command shell does not use the \\wsl$ server to work with the Linux files, it uses a different mechanism for that. There is a way to protect access for such a method with Folder Guard, too, we plan to discuss it in a separate article.
If you want to link to this article, you can use this HTML code: <a href="http://www.winability.com/password-protect-windows-linux-folder-guard/">How to password-protect Windows Linux folders with Folder Guard</a>
- How to keep desktop icons from moving by running Icon Shepherd from command line
- How to restrict access to Task Manager with Folder Guard
- Take ownership of your files after access denied due to NTFS permissions
- How to disable CAPS LOCK key
- Encryptability vs Folder Guard: which one to choose?
- Troubleshooting software removal problems using MSI files
- Encryptability: Compare Personal and Business Licenses
- Solved: How to add Group Policy and Local Security Policy to Windows 10 Home
- File too large for USB drive? Here is how to fix it.
- Forget your WI-FI password? Find it in Windows 10 settings
- What is FAT32 maximum file size limit?
- How to create a secret folder with Folder Guard for Windows 10
- How to easily password-protect Windows 10 Linux folders with Folder Guard
- How to reset the root password after upgrading MariaDB
- How to upgrade MySQL or MariaDB properly
- Force DISKPART to delete EFI system partition on Windows 10
- How to make Windows 10 recognize a cloned hard drive again
- How to stop Windows 10 from using thumbnail preview icons for folders
- How to hide pictures from the Photos app in Windows 10
- How to save Windows Spotlight photos to your computer
- How to move the OneDrive folder to an encrypted drive
- Windows 10 fails to upgrade? Here is how to fix it.
- How to stop Microsoft Edge from hijacking PDF files
- Preventing installations of specific programs with Folder Guard
- Folder Guard licensing explained
- Speed up the updates of the network folders
- Make your Windows laptop work as a Wi-Fi access point
- How to stop automatic updates on Windows 10
- Windows cannot connect to the printer. Access is denied.
- Migrating encrypted data from TrueCrypt to USBCrypt
- Enhancing a photo CD collection with PhotoLauncher
- “The Microsoft account service is unavailable right now. Try again later.”
- Using DiffMerge as the external tool of AB Commander to compare plain text files
- How to erase the icon cache and/or thumbnail cache in Windows 10
- Transferring images between your PC and an Android device: Part 2
- Transferring images between your PC and an Android device: Part 1
- Case study: Using SoftDetective to suppress Corel Guide sign-in prompt
- Using junction points to change the iTunes backup folder location
- How to tell if my Windows is 32- or 64-bit?
- How do I stop Windows from rearranging my desktop icons?
- Organize your photo library with the Rename tool of AB Commander
- Windows does not offer the NTFS format option? Here is how to bring it back.
- Encrypt Firefox profile, bookmarks, and cookies with USBCrypt
- Restarting Windows 10 and Windows 8 in the safe mode
- Integrating AB Commander with Universal Viewer
- How to delete a protected EFI system partition with Windows 11,10, 8, or 7
- Using Folder Guard to protect from the social engineering attacks
- How to erase Windows login password if you forget it
- How to unhide a folder hidden with Folder Guard
- How to repair Windows desktop icons with AB Commander
- Slow network in Windows 7 Virtual PC? Speed it up!
- How to show drive letters first in AB Commander and Windows Explorer
- What is my IP address?
- Why can’t I copy large files over 4GB to my USB flash drive or SD card?
- Test the strength of your password with USBCrypt
- How to set up an external text editor for AB Commander
- How to restrict Internet Explorer from downloading programs from the Internet
- Personal vs business license for USBCrypt
- Use Folder Guard to restrict access to Control Panel
- Compare MySecretFolder and Folder Guard
- Hide folders and make files invisible with Folder Guard
- WINEXIT vs ActiveExit: automatically log off users from Windows 10
- Password protect folders, lock files and folders with passwords
- How to restrict access and lock external drives with Folder Guard
- How to password-protect Dropbox folder with USBCrypt
- How to set up Folder Guard to stop downloading from the Internet
- Is [Wipe the content] the same as [Secure Delete]?
- How to encrypt and protect the system C: drive with USBCrypt
- Make it easier to return your lost encrypted drive
- USBCrypt for users of Microsoft® Office
- How to start programs elevated from a batch file
- How to make elevated programs recognize network drives
- How to disable hibernation with AB Commander
- Using names and labels to organize USBCrypt drives
- How to password-protect a USB flash drive
- Always have a backup of your important files