Skip to content
Snippets Groups Projects
Commit 7260d3c4 authored by Dylan Hicks's avatar Dylan Hicks
Browse files

Made gitignore ignore temporary vim files; made init.js drop its privileges;...

Made gitignore ignore temporary vim files; made init.js drop its privileges; improved description of package.json
parent 8cb64dee
Branches
Tags
No related merge requests found
...@@ -67,3 +67,7 @@ typings/ ...@@ -67,3 +67,7 @@ typings/
# next.js build output # next.js build output
.next .next
# Ignore temporary backup files created by vim
*~
.swp
...@@ -90,9 +90,14 @@ module.exports = function main(){ ...@@ -90,9 +90,14 @@ module.exports = function main(){
var spawnOpts = { var spawnOpts = {
stdio:"inherit", uid:config.serviceUid, gid:config.serviceGid stdio:"inherit", uid:config.serviceUid, gid:config.serviceGid
}; };
cproc.spawn(nodejs, ["core/pam-service.js"], spawnOpts); var rootSpawnOpts = {stdio:"inherit", gid:config.serviceGid};
cproc.spawn(nodejs, ["core/pam-service.js"], rootSpawnOpts);
cproc.spawn(nodejs, ["core/proxy-service.js"], spawnOpts); cproc.spawn(nodejs, ["core/proxy-service.js"], spawnOpts);
cproc.spawn(nodejs, ["core/login-service.js"], spawnOpts); cproc.spawn(nodejs, ["core/login-service.js"], spawnOpts);
// Drop privileges
process.setgid(config.serviceGid);
process.setuid(config.serviceUid);
} }
catch(e){ catch(e){
//console.error("Fatal Error: " + e.message); //console.error("Fatal Error: " + e.message);
......
{ {
"name": "ucc-portal", "name": "ucc-portal",
"version": "0.0.1", "version": "0.0.1",
"description": "An easy to use self-service portal for UCC members to configure their shell, mail forwarding address, and other things that would normally require knowledge of the Linux command line.", "description": "An easy to use self-service portal for UCC members to check their dispense credit, configure mail forwarding address, and other things that would normally require knowledge of the Linux command line.",
"main": "uccportal.js", "main": "uccportal.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment