You are not logged in.

#1 2010-12-16 22:15:07

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

/usr/local as user-writable, good idea or not?

I started working with node.js, and the compiled code goes into /usr/local as usual. I've also used the node's package manager which automatically downloads 3rd party node modules and installs them wherever node is located. So, my question is would it be wise to chown the entire /usr/local tree to be user writable?

Offline

#2 2010-12-17 00:34:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,403
Website

Re: /usr/local as user-writable, good idea or not?

/usr/local/bin probably comes before /usr/bin in your PATH so that allows every users to replace important system binaries for you.

Offline

#3 2010-12-17 00:36:16

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: /usr/local as user-writable, good idea or not?

I don't think it's a good idea as it could allow malicious scripts to be placed (and executed) by anyone

Could you install node to /opt/node and then chown that directory to your user?


Rauchen verboten

Offline

#4 2010-12-17 00:39:05

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: /usr/local as user-writable, good idea or not?

Yeah, I think /opt/node would be optimal. Thanks for the tips. I haven't compiled stuff in a long while, so I got a bit lazy, I guess. smile

Offline

Board footer

Powered by FluxBB