Socket
Socket
Sign inDemoInstall

downgrade-root

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downgrade-root

Try to downgrade the permissions of a process with root privileges


Version published
Weekly downloads
218K
increased by6.21%
Maintainers
2
Weekly downloads
 
Created

What is downgrade-root?

The downgrade-root npm package allows you to drop root privileges in a Node.js application. This is particularly useful for applications that need to start with root privileges to bind to low-numbered ports but should run with lower privileges for security reasons.

What are downgrade-root's main functionalities?

Drop root privileges

This feature allows you to drop root privileges in your Node.js application. By calling downgradeRoot(), the process will switch to a non-root user, enhancing security.

const downgradeRoot = require('downgrade-root');
downgradeRoot();

Specify user and group

This feature allows you to specify the user and group to switch to when dropping root privileges. This can be useful if you need to run the application under a specific user and group.

const downgradeRoot = require('downgrade-root');
downgradeRoot('username', 'groupname');

Other packages similar to downgrade-root

Keywords

FAQs

Package last updated on 15 Jun 2016

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