LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2023, 10:39 AM   #1
akinolamauyon
LQ Newbie
 
Registered: Oct 2023
Posts: 1

Rep: Reputation: 0
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
 
Old 10-07-2023, 11:26 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 930

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Permission is denied not to download a file but to save it. You don't have write access to /var/www/html
 
1 members found this post helpful.
Old 10-07-2023, 12:07 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
most likley " /var/www/html " is owned by Apache
you need to use a different location
 
Old 10-07-2023, 05:25 PM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Would
Quote:
sudo wget ...
work?

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed at step EXEC spawning /usr/local/apache2/bin/apachectl: Permission denied while starting httpd using command "systemctl start httpd" linuxtale Linux - Server 4 06-29-2019 09:39 PM
Mount error 13:permission denied while trying to mount Buffalo NAS to RHEL grendle65 Linux - Newbie 4 05-06-2013 05:39 PM
[SOLVED] URGENT::Unable to open pty: Permission denied while trying to login to vps node dontob Linux - Newbie 2 03-08-2011 05:14 AM
Permission denied while trying to put the file using TFTP Rohit_4739 Linux - Newbie 3 01-06-2011 05:22 PM
permission denied error while trying to write to a mount of windows share threezerous Linux - Security 1 12-22-2009 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration