#24819 [Asn->Fbk]: most pear cli commands have problems with permissions
| From: | tony2001@php.net | Date: | Mon, 16 May 2005 10:01:54 +0000 |
| Subject: | #24819 [Asn->Fbk]: most pear cli commands have problems with permissions | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37674@lists.php.net to get a copy of this message | ||
ID: 24819
Updated by: tony2001@php.net
Reported By: meebey@php.net
-Status: Assigned
+Status: Feedback
Bug Type: PEAR related
Operating System: Linux
PHP Version: Irrelevant
Assigned To: cox
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-04-27 09:24:22] 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.
------------------------------------------------------------------------
[2003-07-26 13:57:15] 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...
------------------------------------------------------------------------
[2003-07-26 08:47:13] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24819&edit=1