> exec('perl -e \'($login,$pass,$uid,$gid) = getpwuid(' + olduid + ');print "$login";\''
What was the status of getting the passwd data? Wasn't that discussed
once upon a time? I know we didn't want it to be a blocking API,
since it needs to hit the file system, but shelling out to perl is so
not good.
--i
> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
>
Can't you just delete this module after you're done using it?
Sincerely,
Kenneth Grome
Heheh...
"I figured out my own solution: use someone else's solution!" ;P
Seriously, that's exactly the right way to do this. It'd be a cool
and interesting project to write upstart or Monit in node. That's
kind of what node-supervisor is the start of, albeit with hardly any
features at this point.
But unless this is ALL your app does, and it does it in a really
generalizable way, it shouldn't do it at all, in my opinion.
--i
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
http://serverfault.com/questions/112795/how-can-i-run-a-server-on-linux-on-port-80-as-a-normal-user
–Jacob
--
That's what I was asking about. A while back, I seem to recall that
we'd seen patches to bind to getgroupname, setgroupname, etc., but
since those are blocking APIs, they need to be clevered up a bit.
--i
process.setuid("tim");
that's all it takes.
Sent from my iPhone
> I agree with Brett. I just run node.js on 8080 and proxy everything through
> ngix while using a "static" subdomain for static files.
And suffer NGINX's HTTP-1.0 proxies, the lack of seeing the real socket to the client.
> I would think having a user switching system integrated into your app would
> be just as insecure, if not moreso, than running it with root permissions.
Hardly: It's a well-understood system interface -- and you can only shed privilege, not gain it again.
It starts as root, then drops privilege.