Permissions, Elevated command prompt - KineticTheory/Linux-HPC-Env GitHub Wiki

Start an elevated command prompt

  • Start a command prompt with elevated permissions: C:\Windows\System32\runas.exe /user:[email protected] C:\Windows\System32\cmd.exe

Fix file permissions

takeown /F e:\ /R /D Y
cacls <file> /g win\%USERNAME%:f
cacls <dir> /t /g win\%USERNAME%:f
  • Reset to original permissions
icacls "c:\Program Files\WindowsApps\Microsoft.WindowsTerminal* /q /c /t /reset

Permissions/Rights

ntrights +r SeNetworkLogonRight -u sunergos\l107638
ntrights -r SeDenyNetworkLogonRight -u sunergos\l107638
ntrights +r SeBatchLogonRight -u sunergos\l107638
ntrights -r SeDenyBatchLogonRight -u sunergos\l107638
ntrights +r SeInteractiveLogonRight -u sunergos\l107638
ntrights -r SeDenyInteractiveLogonRight -u sunergos\l107638
ntrights +r SeServiceLogonRight -u sunergos\l107638
ntrights -r SeDenyServiceLogonRight -u sunergos\l107638
ntrights +r SeBackupPrivilege -u sunergos\l107638
ntrights +r SeRestorePrivilege -u sunergos\l107638

ntrights +r SeNetworkLogonRight -u win\107638
ntrights -r SeDenyNetworkLogonRight -u win\107638
ntrights +r SeBatchLogonRight -u win\107638
ntrights -r SeDenyBatchLogonRight -u win\107638
ntrights +r SeInteractiveLogonRight -u win\107638
ntrights -r SeDenyInteractiveLogonRight -u win\107638
ntrights +r SeServiceLogonRight -u win\107638
ntrights -r SeDenyServiceLogonRight -u win\107638
ntrights +r SeBackupPrivilege -u win\107638
ntrights +r SeRestorePrivilege -u win\107638

UAC - User Access Controls

⚠️ **GitHub.com Fallback** ⚠️