Socket
Socket
Sign inDemoInstall

node-windows

Package Overview
Dependencies
4
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

3

lib/daemon.js

@@ -134,3 +134,4 @@ /**

logmode: this.logmode,
logging: config.logging
logging: config.logging,
allowServiceLogon: config.allowServiceLogon
});

@@ -137,0 +138,0 @@ }

@@ -124,9 +124,14 @@ module.exports = {

if (config.logOnAs) {
var serviceaccount = [
{ domain: config.logOnAs.domain || 'NT AUTHORITY' },
{ user: config.logOnAs.account || 'LocalSystem' },
{ password: config.logOnAs.password || '' }
]
if (config.allowServiceLogon) {
serviceaccount.push({ allowservicelogon: 'true' })
}
xml.push({
serviceaccount: [
{domain: config.logOnAs.domain || 'NT AUTHORITY'},
{user: config.logOnAs.account || 'LocalSystem'},
{password: config.logOnAs.password || ''},
{allowservicelogon: 'true'}
]
serviceaccount: serviceaccount
});

@@ -133,0 +138,0 @@ }

{
"name": "node-windows",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "Support for Windows services, event logging, UAC, and several helper methods for interacting with the OS.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -93,2 +93,3 @@ # node-windows

//, workingDirectory: '...'
//, allowServiceLogon: true
});

@@ -209,3 +210,4 @@

name:'Hello World',
script: require('path').join(__dirname,'helloworld.js')
script: require('path').join(__dirname,'helloworld.js'),
//, allowServiceLogon: true
});

@@ -223,2 +225,4 @@

If you want to instruct winsw to allow service account logins, specify `allowServiceLogon: true`. This is disabled by default since some users have experienced issues running this without service logons.
The other attribute is `sudo`. This attribute has a single property called `password`. By supplying

@@ -225,0 +229,0 @@ this, the service module will attempt to run commands using the user account that launched the

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc