LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission denied error while trying to download using the wget command (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-error-while-trying-to-download-using-the-wget-command-4175729652/)

akinolamauyon 10-07-2023 10:39 AM

Permission denied error while trying to download using the wget command
 
I am having permission denied error while trying to download from owncloud using the wget command. By using the download url on a browser I could download the file but from the ubuntu server command line I am having the error. Please see below

ubuntu@P1-AppServer:/var/www/html$ wget https://download.owncloud.com/server...latest.tar.bz2
--2023-10-07 15:22:05-- https://download.owncloud.com/server...latest.tar.bz2
Resolving download.owncloud.com (download.owncloud.com)... 167.233.14.167, 2a01:4f8:1c1d:3d1::1
Connecting to download.owncloud.com (download.owncloud.com)|167.233.14.167|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 76290404 (73M) [application/x-bzip2]
owncloud-complete-latest.tar.bz2: Permission denied

lvm_ 10-07-2023 11:26 AM

Permission is denied not to download a file but to save it. You don't have write access to /var/www/html

John VV 10-07-2023 12:07 PM

most likley " /var/www/html " is owned by Apache
you need to use a different location

jamison20000e 10-07-2023 05:25 PM

Would
Quote:

sudo wget ...
work?

Otherwise it should work in a folder you own (like said^:D) and then you can move it.


All times are GMT -5. The time now is 05:48 PM.