Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I try to download Drupal I get denied permission. How can I bypass this?

 /var/www$ wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz

This results in:

    --2012-02-08 21:20:17--  http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
Resolving ftp.drupal.org... 64.50.233.100, 64.50.236.52
Connecting to ftp.drupal.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2728271 (2.6M) [application/x-gzip]
drupal-7.0.tar.gz: Permission denied

Cannot write to `drupal-7.0.tar.gz' (Permission denied).
eyedea@eyedea-ER912AA-ABA-SR1810NX-NA620:/var/www$ ^C
eyedea@eyedea-ER912AA-ABA-SR1810NX-NA620:/var/www$ wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
--2012-02-08 21:46:34--  http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
Resolving ftp.drupal.org... 64.50.236.52, 64.50.233.100
Connecting to ftp.drupal.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2728271 (2.6M) [application/x-gzip]
drupal-7.0.tar.gz: Permission denied

Cannot write to `drupal-7.0.tar.gz' (Permission denied).
share|improve this question

migrated from stackoverflow.com Feb 9 '12 at 7:57

This question came from our site for professional and enthusiast programmers.

1  
This isn't a programming question; Probably better asked on unix.stackexchange.com –  Bevan Feb 9 '12 at 2:58
1  
It looks like you are trying to download directly to the /var/www directory. Your normal user probably doesn't have permission to write to that location. You should download it to your home directory, unpack it, and the move it to the appropriate folder. In order to solve this you should read about the file system permissions. This link will explain most of it: linux files and file permissions‌​. I assume you are using linux, but it should be very similar on other unix variants. –  kkm Feb 9 '12 at 7:15

1 Answer 1

Problem may be, you don't have permission or your disk is full. Try $ sudo wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz

If dowsn't work, then do $ df -h

Your / filesystem should not be full

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.