# root-check **Repository Path**: mirrors_sindresorhus/root-check ## Basic Information - **Project Name**: root-check - **Description**: Try to downgrade the permissions of a process with root privileges and block access if it fails - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # root-check > Try to [downgrade the permissions](https://github.com/sindresorhus/downgrade-root) of a process with root privileges and [block access](https://github.com/sindresorhus/sudo-block) if it fails ![](https://github.com/sindresorhus/sudo-block/raw/main/screenshot.png) ## Install ```sh npm install root-check ``` ## Usage ```js import rootCheck from 'root-check'; rootCheck(); ``` ## API See the [`sudo-block` API](https://github.com/sindresorhus/sudo-block#api).