[GH-ISSUE #42] Why is root required for install? #33

Closed
opened 2026-02-26 05:31:07 +03:00 by kerem · 3 comments
Owner

Originally created by @taxilian on GitHub (Oct 8, 2012).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/42

I have no particular need to create a special user for this to run as; it'd be just fine to run it as my current user. Why is this so hardcoded to require root?

I understand having an install script to set it up in the traditional setup, but it seems a little odd that I cant' just install it as a normal user without all that extra stuff. nothing requiring creating a new user or root access should ever be required to run something like this.

Originally created by @taxilian on GitHub (Oct 8, 2012). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/42 I have no particular need to create a special user for this to run as; it'd be just fine to run it as my current user. Why is this so hardcoded to require root? I understand having an install script to set it up in the traditional setup, but it seems a little odd that I cant' just install it as a normal user without all that extra stuff. nothing requiring creating a new user or root access should ever be required to run something like this.
kerem closed this issue 2026-02-26 05:31:07 +03:00
Author
Owner

@cyberb commented on GitHub (Oct 24, 2012):

had to fix log.io-harvester / log.io-server startup scripts to use relative paths for configs and to run as current user.
I would like to have non-root support out of the box.

<!-- gh-comment-id:9751751 --> @cyberb commented on GitHub (Oct 24, 2012): had to fix log.io-harvester / log.io-server startup scripts to use relative paths for configs and to run as current user. I would like to have non-root support out of the box.
Author
Owner

@jochenonline commented on GitHub (Feb 21, 2013):

I have just installed log.io under my "normal" user and it works like charm.

mkdir mylogio
cd mylogio
npm install coffee-script 
npm install log.io

Without the extra coffe-script installation my log.io installation missed cake.

The only thing you have to do now is to start the server/harvester "by hand":

node ~/mylogio/node_modules/log.io/bin/log.io-server
node ~/mylogio/node_modules/log.io/bin/log.io-harvester

That's it!

You can find the config files in ~/.log.io

<!-- gh-comment-id:13900958 --> @jochenonline commented on GitHub (Feb 21, 2013): I have just installed log.io under my "normal" user and it works like charm. ``` mkdir mylogio cd mylogio npm install coffee-script npm install log.io ``` Without the extra `coffe-script` installation my `log.io` installation missed `cake`. The only thing you have to do now is to start the server/harvester "by hand": ``` node ~/mylogio/node_modules/log.io/bin/log.io-server node ~/mylogio/node_modules/log.io/bin/log.io-harvester ``` That's it! You can find the config files in `~/.log.io`
Author
Owner

@msmathers commented on GitHub (Feb 21, 2013):

@jochenonline is right, v0.3.0 now installs entirely in user space. You'll still need root to do a global install (npm install -g log.io), but it's not required.

Also, be sure to tell npm to use a specific user, otherwise it will fail out when trying to create your ~/.log.io directory for configuration:

npm install -g log.io --user "ubuntu"

or

npm set "user" "ubuntu"
npm install -g log.io

<!-- gh-comment-id:13904840 --> @msmathers commented on GitHub (Feb 21, 2013): @jochenonline is right, v0.3.0 now installs entirely in user space. You'll still need root to do a global install (npm install -g log.io), but it's not required. Also, be sure to tell npm to use a specific user, otherwise it will fail out when trying to create your ~/.log.io directory for configuration: npm install -g log.io --user "ubuntu" or npm set "user" "ubuntu" npm install -g log.io
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#33
No description provided.