Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Newbie question
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Isaac Schlueter  
View profile  
 More options Sep 18 2011, 1:49 pm
From: Isaac Schlueter <i...@izs.me>
Date: Sun, 18 Sep 2011 10:49:12 -0700
Local: Sun, Sep 18 2011 1:49 pm
Subject: Re: [npm] Newbie question

On Sun, Sep 18, 2011 at 06:10, Vilo <conschmi...@gmail.com> wrote:
> I installed npm.

What version?  `npm -v`

> When I install module locally (without -g option) it
> will install this module in node_modules directory in user's
> directory. However all of the installed files are owned by root. Is
> this the desired outcome?

No. (Unless it's under root's home directory.)

> Does it mean that anytime this module is
> used, it is run under root privileges? If so isn't this dangerous?

No, it does not mean that.  Observe:

    $ cat >whoami.sh <<END
    #!/bin/bash
    whoami
    END

    $ chmod 0755 whoami.sh

    $ chown root whoami.sh

    $ ./whoami.sh
    isaacs

    $ sudo ./whoami.sh
    root

> For example I could only install 'forever' as a root. But it only
> allows me to run forever as a root.

I think that might be normal.  Whatever the case, it's a forever bug,
not an npm bug.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.