Bug 1013501

Summary: Drush fails as regular user (permission denied)
Product: [Fedora] Fedora Reporter: Claus Conrad <lists>
Component: php-drush-drushAssignee: Shawn Iwinski <shawn>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jfriar, lists, peter.borsa, shawn
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: php-drush-drush-6.2.0-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-24 17:57:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 997843, 1016260    
Bug Blocks:    

Description Claus Conrad 2013-09-30 08:36:13 UTC
Description of problem:

Permission denied when run as regular user; tries to write to /usr/share.

Version-Release number of selected component (if applicable): 5.9

How reproducible:

When I run "drush <some-command>" on a Drupal website somewhere below my home folder it complains about not being able to write to /usr/share/pear/drush.

Steps to Reproduce:
1. sudo yum install -y php-drush-drush
2. cd
3. drush status

Actual results:

[claus@localhost]$ drush status
Directory /usr/share/pear/drush exists, but is not writable. Please  [error]
check directory permissions.

Expected results:

A message that the current directory is not a Drupal site.

Additional info:

Reporting this bug as suggested at https://ask.fedoraproject.org/question/33217/drush-fails-as-regular-user-permission-denied/ , where a workaround is described.

Fixing https://bugzilla.redhat.com/show_bug.cgi?id=997843 would probably fix this one too.

Comment 1 John Friar 2013-10-08 18:01:36 UTC
This problem is being caused because the drush RPM does not include "/usr/share/pear/drush/lib/", which drush requires (but doesn't require to be writeable), and a non-root user cannot create that folder

"/usr/share/pear/drush/lib/" should be included in the drush RPM.

When I created that folder (as root), my non-root user was able to run drush.

Comment 2 Shawn Iwinski 2013-10-09 00:39:34 UTC
Claus & John -- Would two like to have a quick fix for this (comment #1) or would you like to wait until I have time to get the pkg updated (bug #997843).  I could do the quick fix tomorrow, but the update will take me a little longer.

Comment 3 Claus Conrad 2013-10-09 08:30:56 UTC
This is not urgent for me. I am working with the upstream 6.0 release at the moment.

Comment 4 John Friar 2013-10-09 17:19:55 UTC
I've manually fixed this by creating "/usr/share/pear/drush/lib" on my machines with drush, so, assuming bug #997843 will be available for RHEL6 (via EPEL), then I'm fine with waiting for version 6 as well.

Comment 5 Fedora Update System 2013-12-09 17:29:55 UTC
php-drush-drush-6.2.0-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/php-drush-drush-6.2.0-1.fc18

Comment 6 Fedora Update System 2013-12-09 17:30:20 UTC
php-drush-drush-6.2.0-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/php-drush-drush-6.2.0-1.fc19

Comment 7 Fedora Update System 2013-12-09 17:30:45 UTC
php-drush-drush-6.2.0-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/php-drush-drush-6.2.0-1.fc20

Comment 8 Fedora Update System 2013-12-09 17:31:15 UTC
php-drush-drush-6.2.0-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/php-drush-drush-6.2.0-1.el6

Comment 9 Fedora Update System 2013-12-22 05:31:59 UTC
php-drush-drush-6.2.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2013-12-22 05:45:46 UTC
php-drush-drush-6.2.0-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2013-12-22 05:47:49 UTC
php-drush-drush-6.2.0-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2013-12-24 17:57:32 UTC
php-drush-drush-6.2.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.