Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

root-check

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

root-check

Try to downgrade the permissions of a process with root privileges and block access if it fails

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is root-check?

The root-check npm package is designed to downgrade the process from root user to a regular user if the process is running as root. This is useful for security reasons, as running processes as root can pose significant risks.

What are root-check's main functionalities?

Downgrade from root

This feature downgrades the process from root to a regular user. The code sample demonstrates how to use the root-check package to ensure that the process is not running as root, enhancing security.

const rootCheck = require('root-check');
rootCheck();
console.log('Running as non-root user');

Other packages similar to root-check

Keywords

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc