net.i2p.router.tasks

## Class BasePerms

- java.lang.Object
- - net.i2p.router.tasks.BasePerms

-     public class BasePerms
      extends Object

  Windows permission fixer for router installations. This class handles permission issues on Windows platforms where older I2P installations may have set overly broad file permissions. It detects installations that need permission fixes and runs the appropriate scripts to tighten security. Platform Specific:
  - Only runs on Windows platforms
  - Skipped on embedded installations (killVMOnEnd = false)
  - Requires write permissions to base directory
  The fix is applied once per installation and marked as complete to avoid repeated execution. This is particularly important for installations upgraded from versions prior to 0.9.46.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasePerms()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `fix(RouterContext ctx)` Fix base permissions for Windows installations.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasePerms

          public BasePerms()

  - ### Method Detail

    - #### fix

          public static void fix(RouterContext ctx)

      Fix base permissions for Windows installations. On Windows, this method checks if permissions need to be fixed and runs the fixperms2.bat script if necessary. This is typically needed after upgrades from older versions where permissions were set too broadly.
      Parameters:
        `ctx` - the router context for accessing configuration and directories