On Mon, Dec 24, 2012 at 1:17 AM, kuno <neok...@gmail.com> wrote:

> I am building a node module that interact with ejabberd<http://ejabberd.im>'s
> control command line utlity `ejabberdctl`.
>
> Unfortunately, on most systems, you need a root user permission to running
> `ejabberdctl`, becuse it either locates at /usr/sbin or /usr/local/sbin
> dirctory.
>
> It seems to use this module, the whole process need to be running as a
> super user on *nix system.
>
> I wonder is there other way to resolve this issue?
>

Check out the uid and gid options described here:

http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options

--
Martin Cooper


--regards
>
> --kuno
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to