This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232662 - Composer installed globally (in /usr/local/bin/composer) should be run via sudo
Summary: Composer installed globally (in /usr/local/bin/composer) should be run via sudo
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Composer (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-13 20:13 UTC by luislobo
Modified: 2013-07-15 04:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Composer update failed (8.13 KB, image/png)
2013-07-13 20:13 UTC, luislobo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description luislobo 2013-07-13 20:13:43 UTC
Created attachment 137080 [details]
Composer update failed

Hi,

I have composer installed globally (via sudo). When I use Composer/Self Update, I get this errors, since the user running netbeans does not have necessary permmissions. It should be possible to configure it to be run as sudo, and be asked for password.

"/usr/bin/php" "/usr/local/bin/composer" "--ansi" "--no-interaction" "self-update"


                                                                                                              
  [Composer\Downloader\FilesystemException]                                                                   
  Filesystem exception:                                                                                       
  Composer update failed: the "/usr/local/bin" directory used to download the temp file could not be written  
                                                                                                              


self-update


Done.
Comment 1 Tomas Mysik 2013-07-15 04:58:54 UTC
Well, yes but only the self-update command; the other commands _must_ run under the user permissions. Also, not sure if "sudo" will work in every possible situations - does _every_ Linux distribution has "sudo" installed by default?

Thanks.
Comment 2 Tomas Mysik 2013-07-15 04:59:43 UTC
BTW IMHO not a defect - works as designed but could/should be improved.

Thanks.