[ixpmanager] Users and permissions (bower upgrade problems)

Mike Hammett ixp-manager at ics-il.net
Wed Mar 29 11:22:50 IST 2017


Just far I have ignored the "DO NOT RUN AS ROOT" warnings as that's the only way it seems to work. 




----- 
Mike Hammett 
Intelligent Computing Solutions 

Midwest Internet Exchange 

The Brothers WISP 

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

From: "Hege Trosvik" <hege.trosvik at usit.uio.no> 
To: ixpmanager at inex.ie 
Cc: "Hege Trosvik" <hege.trosvik at usit.uio.no> 
Sent: Wednesday, March 29, 2017 3:36:23 AM 
Subject: [ixpmanager] Users and permissions (bower upgrade problems) 


I have modified the ubuntu install-script to work for fedora, 
and I assume the install-scripts are meant to be run as root. 
This is working fine, until I now try to do an upgrade strictly 
by the book and run into bower complaints. 

As far as I have been able to figure out, here is the problem: 

The install script does "chown -R www-data: $IXPROOT" right after 
checking out ixpmanager, then does various stuff, including bower 
as www-data: 

sudo -u www-data bash -c "HOME=$IXPROOT && cd $IXPROOT && bower --config.interactive=false -f update &>> /tmp/ixp-manager-install.log" 

before doing: 

chown -R root: ${IXPROOT} 
chown -R www-data: ${IXPROOT}/storage ${IXPROOT}/var ${IXPROOT}/bootstrap/cache ${IXPROOT}/database/Proxies &>> /tmp/ixp-manager-install.log 

When I follow the docs to do an upgrade, I also do it as root, 
but "bower install" does not want to be run as root, and the 
"sudo -u www-data..." (or sudo -u apache for fedora) does not 
work as most of $IXPROOT is now owned by root. 

Any recommendations for users/permissions here? 

Hege 



_______________________________________________ 
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/20170329/55a410a3/attachment.html>


More information about the ixpmanager mailing list