Skip to content

restrictToUser

View as Markdown
function restrictToUser(path, o?): Promise<void>;

Defined in: agent/src/perms.ts:36

Makes path readable by the current user only. POSIX: chmod 600 (700 for a directory). Windows: icacls "<path>" /inheritance:r /grant:r "<user>:F" ((OI)(CI)F for a directory), which drops the inherited entries (Users, Authenticated Users) and leaves only the user.

Parameter Type
path string
o? PermsOptions & object

Promise<void>