Merge pull request #2824 from Dimitory/patch-1

This commit is contained in:
Eugene
2020-07-27 22:15:09 +02:00
committed by GitHub

View File

@@ -114,7 +114,9 @@ export class SSHService {
'ssh-keygen.exe', 'ssh-keygen.exe',
) )
await execFile('icacls', [temp.path, '/inheritance:r']) await execFile('icacls', [temp.path, '/inheritance:r'])
await execFile('icacls', [temp.path, '/grant:r', `${process.env.USERNAME}:(R,W)`]) let sid = await execFile('whoami', ['/user', '/nh'])
sid = sid[0].split(' ')[0]
await execFile('icacls', [temp.path, '/grant:r', `${sid}:(R,W)`])
} }
await execFile(sshKeygenPath, [ await execFile(sshKeygenPath, [