[ixpmanager] Upgrades, permissions, sudos, etc.

Mike Hammett ixp-manager at ics-il.net
Mon Jan 29 12:19:04 GMT 2018


When doing a 

---- 
sudo -u www-data bash -c "HOME=${IXPHOME}/storage && cd ${IXPHOME} && bower --config.interactive=false -f update" 
---- 


bower EACCES EACCES: permission denied, unlink '/srv/ixpmanager/public/bower_components/ip-address/.bower.json' 


Stack trace: 
Error: EACCES: permission denied, unlink '/srv/ixpmanager/public/bower_components/ip-address/.bower.json' 
at Error (native) 


Console trace: 
Error 
at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37) 
at Logger.<anonymous> (/usr/local/lib/node_modules/bower/lib/bin/bower.js:110:26) 
at emitOne (events.js:77:13) 
at Logger.emit (events.js:169:7) 
at Logger.emit (/usr/local/lib/node_modules/bower/lib/node_modules/bower-logger/lib/Logger.js:29:39) 
at /usr/local/lib/node_modules/bower/lib/commands/index.js:48:20 
at _rejected (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:844:24) 
at /usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:870:30 
at Promise.when (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31) 
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:788:41) 
System info: 
Bower version: 1.8.0 
Node version: 4.2.6 
OS: Linux 4.4.49-1-pve x64 



Everything there is owned by root. How far up should I chown things to www-data? 





----- 
Mike Hammett 
Intelligent Computing Solutions 

Midwest Internet Exchange 

The Brothers WISP 

----- Original Message -----

From: "Mike Hammett" <ixp-manager at ics-il.net> 
To: "INEX IXP Manager Mailing List" <ixpmanager at inex.ie> 
Sent: Monday, January 29, 2018 6:02:28 AM 
Subject: [ixpmanager] Upgrades, permissions, sudos, etc. 


I'm attempting upgrades of my install. 

---- 
composer install doesn't work for me, but `./composer.phar install` does. 
---- 


---- 

root at ixpm:/srv/ixpmanager# bower prune 
bower ESUDO Cannot be run with sudo 


Additional error details: 
Since bower is a user command, there is no need to execute it with superuser permissions. 
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs. 


http://www.joyent.com/blog/installing-node-and-npm 
https://gist.github.com/isaacs/579814 


You can however run a command with sudo using --allow-root option 
---- 

However, I can't find a non-root user the bower commands actually work with. What's the appropriate way for this to actually work? 



----- 
Mike Hammett 
Intelligent Computing Solutions 

Midwest Internet Exchange 

The Brothers WISP 


_______________________________________________ 
INEX IXP Manager mailing list 
ixpmanager at inex.ie 
https://www.inex.ie/mailman/listinfo/ixpmanager 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20180129/6a79f622/attachment-0001.html>


More information about the ixpmanager mailing list