UNPKG

admina

Version:

Detect root/admin/sudo and execute commands as it if available

8 lines (7 loc) 315 B
/** * Give the user access to the given path (and its sub-directories if a directory). It changes the owner to the * SUDO_USER. This allows the user to use the folder without sudo * * @param path The path to give the user access to */ export declare function grantUserWriteAccess(path: string): Promise<void>;