1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-01 08:36:35 +03:00

Update ssh.service.ts

This commit is contained in:
Dmitry Pronin 2020-07-27 19:26:02 +03:00 committed by GitHub
parent 9cae50bfc5
commit fcc9d7cf7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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