other:win10wsl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:win10wsl [2022/09/06 16:54] – [Base installation] Added a backup step jypeter | other:win10wsl [2022/09/07 14:02] – [WSL security WARNING!] jypeter | ||
---|---|---|---|
Line 988: | Line 988: | ||
===== Advanced usage ===== | ===== Advanced usage ===== | ||
+ | ==== WSL security WARNING! ==== | ||
+ | <WRAP center round important 60%> | ||
+ | A regular Linux installation (on a Linux-only computer) is fairly secure,\\ but a Linux installation on WSL is not secure at all, **by design** | ||
+ | </ | ||
+ | |||
+ | WSL+Linux is designed to allow you to easily use Linux on Windows, including **very easily using the Linux root account without knowing any password** of the Linux installation! | ||
+ | |||
+ | < | ||
+ | wsl_default_user@your_machine:/ | ||
+ | wsl_default_user | ||
+ | |||
+ | PS C: | ||
+ | root@your_machine:/ | ||
+ | root</ | ||
+ | |||
+ | This is **a feature and not a security issue**, because your installation is protected by your Windows account security | ||
+ | |||
+ | You should be aware (and act accordingly) that: | ||
+ | * Somebody gaining access to your Windows account will also have full access to the Linux installation | ||
+ | * <wrap hi>Do not use an existing password for the WSL Linux account</ | ||
+ | * Storing data in the Linux part of your computer does not add any extra security | ||
+ | * Always **make sure that only you can access your Windows account** | ||
+ | * Your LSCE Windows laptop (not your desktop) is encrypted with [[https:// | ||
+ | |||
+ | * Somebody gaining access to a backup of your Linux installation will easily have access to the Linux installation itself | ||
+ | * You can store your Linux installation backup to [[https:// | ||
==== Creating a backup ==== | ==== Creating a backup ==== | ||
Line 1051: | Line 1077: | ||
Note: | Note: | ||
- | * This is currently the only way of moving (relocating) a Linux installation to another disk than the default '' | + | * This is currently the only way of **moving (//relocating//) a Linux installation** to another disk than the default '' |
- | * Importing will mostly put the '' | + | * //Importing// will mostly put the '' |
* You need [[other: | * You need [[other: | ||
- | * This is an indirect way of reclaiming the unused space of a Linux installation, i.e the size of the '' | + | * Creating a backup and restoring it is an indirect way of **reclaiming the unused space of a Linux installation**: the size of the '' |
Detailed [[https:// | Detailed [[https:// | ||
Line 1060: | Line 1086: | ||
* We assume that we have an exported installation tar file available | * We assume that we have an exported installation tar file available | ||
* In this example, we use the compressed backup file created in [[other: | * In this example, we use the compressed backup file created in [[other: | ||
+ | * '' | ||
* Create the directory where the Linux installation (mostly its '' | * Create the directory where the Linux installation (mostly its '' | ||
- | * Hint: use an explicit directory path and name using the name of the distribution that will be restored\\ e.g. '' | + | * Hint: use an explicit directory path and name using the name of the distribution that will be restored, because the name of the restored file itself will always be the same ('' |
- | * Import the distribution, | + | * Import the distribution, |
* < | * < | ||
NAME STATE | NAME STATE | ||
Line 1078: | Line 1105: | ||
* Or from a PowerShell, using '' | * Or from a PowerShell, using '' | ||
* WARNING: even if the distribution we imported had an existing default '' | * WARNING: even if the distribution we imported had an existing default '' | ||
- | * It is possible to explicitly specify the requested user each time we start a terminal, but it will be more convenient to specify a default user\\ wsl --distribution Ubuntu_custom --user stdu | + | * It is possible to explicitly specify the requested user each time we start a terminal, but it will be more convenient to specify a default user\\ |
- | * Specify a default user (note: [[https:// | + | * You can easily open a '' |
+ | * Specify a default user (note: [[https:// | ||
* < | * < | ||
cat: / | cat: / |
other/win10wsl.txt · Last modified: 2023/12/06 14:24 by jypeter