php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24819 most pear cli commands have problems with permissions
Submitted: 2003-07-26 08:47 UTC Modified: 2005-06-06 14:24 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: meebey@php.net Assigned: cox (profile)
Status: Closed Package: PEAR related
PHP Version: 4CVS-2003-02-10 (stable) OS: Debian GNU/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: meebey@php.net
New email:
PHP Version: OS:

 

 [2003-07-26 08:47 UTC] meebey@php.net
Description:
------------
The following pear cli commands only work right when they are run as root:
pear info
pear remote-info
pear list-all
pear list
pear list-upgrades
pear search

They should also work as non-root since they don't change anything in the PEAR installation, they are just informative.

Actual result:
--------------
meebey@meebey-mobile:~$ pear info Net_SmartIRC
could not create lock file: failed to open stream: Permission denied
meebey@meebey-mobile:~$ pear remote-info Net_SmartIRC     
could not create lock file: failed to open stream: Permission denied
meebey@meebey-mobile:~$ pear list-all
could not create lock file: failed to open stream: Permission denied
meebey@meebey-mobile:~$ pear list                    
could not create lock file: failed to open stream: Permission denied
meebey@meebey-mobile:~$ pear list-upgrades
could not create lock file: failed to open stream: Permission denied
meebey@meebey-mobile:~$ pear search irc
could not create lock file: failed to open stream: Permission denied


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-26 13:57 UTC] meebey@php.net
after I got some background info from pierre, I understood that it's not a user problem. It's a problem of filelocking, which only works right when the user runs the pear cli that installed it. So own user installations of PEAR work in their homedirs. The systemwide one only for root in this case (root installed it).
I will analyze this problem further...

 [2004-04-27 09:24 UTC] helgi at trance dot is
pear info
pear remote-info
pear list-all
pear list
pear list-upgrades

work with out being root now ;) just tested. though it seems to give back outdated info.

like pear remote-info Liveuser says that newest version is 0.8.1 but the local version is 0.10.0 ;)
But this was do to the none root user had diffrent pear config, which is silly IMO.

also using pear search LiveUser (or just anything else) gives back:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2949120 bytes) in /usr/share/pear/XML/RPC.php(750) : eval()'d code on line 938
 
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) in Unknown on line 0

already been reported http://pear.php.net/bugs/bug.php?id=319 though.
 [2005-05-24 01:00 UTC] pear-dev at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-06-06 14:24 UTC] meebey@php.net
tested all said command and they work like a charm with the current PEAR version. Thanks for fixing this!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC