LinuxQuestions.org
Visit Jeremy's Blog.
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 03-07-2022, 09:20 PM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Upload file doesn't work, I got errors


I got:
"Could not read the contents of home...error opening directory /'home': Permission denied" when I tried to upload to different sites. I also noticed I got an same error when I tried to upload from my usb stick.

I saved the screenshot with GIMP to my pictures folder in desktop and presumed pictures folder would be sitting under Home somewhere. I am uncertain as to locate pictures folder i.e. navigate towards it, can someone guide me? Thanks in advance.

Debian 11

Last edited by linux-man; 03-07-2022 at 11:18 PM.
 
Old 03-07-2022, 10:11 PM   #2
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
Post the actual command and the returned error so people can help you. In code tags.
 
Old 03-07-2022, 11:23 PM   #3
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
There's no code tags to post

Quote:
Originally Posted by Debian6to11 View Post
Post the actual command and the returned error so people can help you. In code tags.
There is no actual code tags, and that's all the error I saw in pop up box plus my usb serial number which I left out. All I did is click a button labelled "upload" or "attach" in forums like when you want to upload something with your post and I got that error. There's not much more I can add to that. I wasn't working in terminal, strictly GUI.

I haven't taken any steps to navigate to pictures folder using terminal either, I don't know how to yet. My priority is get my pictures uploaded from any file within my desktop or usb stick which I can't do at the moment hence error message and post here. I have 2 problems in one post:
- uploads from any file are not being allowed (all info I got in post about error, no code available)
- teach me how to navigate to picture so I can upload (no code available)

Last edited by linux-man; 03-07-2022 at 11:32 PM.
 
Old 03-07-2022, 11:52 PM   #4
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Rep: Reputation: 29
go to terminal, and from the directory with the pics, run
Code:
ls -la .
then
Code:
whoami
Basically if you are not the owner of the directory and/or file, you need to change the owner with 'chown'
 
Old 03-07-2022, 11:56 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
would be nice to explain how did you try it exactly. Is it a browser, or what? How is it configured? Did you install plugins/extensions? How it was started? What kind of desktop is it. How it was started? (same user, different user, ....) And actually what OS is it?
 
Old 03-08-2022, 12:15 AM   #6
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
I am sole user, everything was done in Tor browser

I tried uploading within tor browser version 11.06 91.6 0esr to a couple of forums unsuccessfully.

No additional plugins or extensions added to Tor browser. Tor browser came with the Debian 11 OS

I logged into desktop with password, I am its sole user at all times.
 
Old 03-08-2022, 12:19 AM   #7
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by breaker View Post
go to terminal, and from the directory with the pics, run
Code:
ls -la .
then
Code:
whoami
Basically if you are not the owner of the directory and/or file, you need to change the owner with 'chown'
The pictures are sitting under Home>Pictures folder (and in my usb stick), I would need to get to the pictures folder first to do what you just suggested and I don't know how to get there once I open Terminal.
 
Old 03-08-2022, 08:44 AM   #8
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Rep: Reputation: 29
use cd to change directories, or just do ls on the dir:
Code:
cd ~/Pictures
and the above, or just do
Code:
ls -la ~/Pictures
then
Code:
whoami
The tilde symbol means your home directory. Linux uses forward slashes in the paths.

Did you originally copy these from the USB drive, and did they come from an external source (camera, phone, friend, etc.)?

Last edited by breaker; 03-08-2022 at 08:45 AM.
 
Old 03-08-2022, 02:33 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
I am sole user, everything was done in Tor browser
there is your issue

tor is sandboxed and uses No-Script plugin

try placing the images you want to upload in the TOR " downloads" folder
it is in the tor install folder
 
1 members found this post helpful.
Old 03-08-2022, 05:13 PM   #10
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
Try what breaker said in post #8, it must be a permission issue. Though it might explain the USB stick directory, it does not explain your own Pictures directory (or any other directory in your /home), unless you changed the owner of said directory.
 
Old 03-08-2022, 09:38 PM   #11
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
They are just screenshots I saved to pictures folder and to my usb

Quote:
Originally Posted by breaker View Post
use cd to change directories, or just do ls on the dir:
Code:
cd ~/Pictures
and the above, or just do
Code:
ls -la ~/Pictures
then
Code:
whoami
The tilde symbol means your home directory. Linux uses forward slashes in the paths.

Did you originally copy these from the USB drive, and did they come from an external source (camera, phone, friend, etc.)?
Nothing was originally copied, they are screen shots taken within a debian desktop to an usb and also to pictures folder of a desktop. They are .png and .xcf files.

The code you gave me worked I can see the screenshots sitting in terminal under Pictures folder of my desktop.Thanks

What code would I need to type to access the screenshots sitting in my usb stick? They are .png and .xcf files as well.

What code do I need to type to transfer them from pictures desktop, and from my usb, to Tor's Download folder? Becasue John VV suggests that I move the pictures to Tor browser's Downloads folder and then I may be allowed to upload the screenshots to forums.
 
Old 03-08-2022, 09:42 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,361

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Please post the o/p of the above cmds, so we can see what's going on.
Also the results of
Code:
lsblk

df -h
may be useful to us.
 
Old 03-08-2022, 10:07 PM   #13
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Rep: Reputation: 29
Sorry if I wasn't clear, but we need to see the actual output of your directory listing, and the whoami. Just need to see the 1) file permissions 2) owner of the files 3) who is logged in, and if they are the owner.

Example, here I am root, and the owner is root, and group root belongs to is root:
Code:
bash-5.1# ls -la ~/Documents
total 12
drwxr-xr-x  2 root root 4096 Mar  8 20:10 .
drwx--x--- 17 root root 4096 Mar  8 19:56 ..
-rw-r--r--  1 root root   21 Mar  8 20:10 test.txt
bash-5.1# whoami
root
The first letter "d" of the first entry . means it is a directory, the next 3 are rwx, read, write, and execute allowed for the user, r-x, read and execute allowed for the group, and r-x, read and execute allowed for all others.
The test.txt entry, has permissions of read and write for root, read only for the root group, and read only for everyone else.

whoami proves that I'm root user.

This is just an example.

Here is a random page about permissions and owners, groups, etc: https://www.tutorialspoint.com/unix/...permission.htm

I have not used Tor in an age, but go ahead and try to copy them like he said, if you want. Pretty sure tor network is compromised by some entities, however. I do like privacy, but it only goes so far with Tor.

Last edited by breaker; 03-08-2022 at 10:20 PM.
 
1 members found this post helpful.
Old 03-08-2022, 10:42 PM   #14
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by breaker View Post
Sorry if I wasn't clear, but we need to see the actual output of your directory listing, and the whoami. Just need to see the 1) file permissions 2) owner of the files 3) who is logged in, and if they are the owner.

I have not used Tor in an age, but go ahead and try to copy them like he said, if you want. Pretty sure tor network is compromised by some entities, however. I do like privacy, but it only goes so far with Tor.
where is my hostname in the below info?

┌─[lenovo@lenovo]─[~]
└──╼ $cd ~/Pictures
┌─[lenovo@lenovo]─[~/Pictures]
└──╼ $ls -la ~/Pictures
total 6724
drwxr-xr-x 1 lenovo lenovo 466 Mar 8 14:03 .
drwxr-xr-x 1 lenovo lenovo 460 Mar 9 09:39 ..
-rw-r--r-- 1 lenovo lenovo 97082 Mar 7 13:34 'picture a.png'
-rw-r--r-- 1 lenovo lenovo 119095 Mar 7 14:49 picture s.png
-rw-r--r-- 1 lenovo lenovo 864977 Mar 6 18:50 'picture b'
-rw-r--r-- 1 lenovo lenovo 1534835 Mar 6 18:37 'picture c'
-rw-r--r-- 1 lenovo lenovo 1302804 Mar 8 13:49 'picture d.xcf'
-rw-r--r-- 1 lenovo lenovo 2439118 Mar 8 13:44 'picture e.xcf'
-rw-r--r-- 1 lenovo lenovo 511724 Mar 8 14:03 'picture f.xcf'
┌─[lenovo@lenovo]─[~/Pictures]
└──╼ $whoami
lenovo

Last edited by linux-man; 03-08-2022 at 11:28 PM.
 
Old 03-08-2022, 10:53 PM   #15
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Please post the o/p of the above cmds, so we can see what's going on.
Also the results of
Code:
lsblk

df -h
may be useful to us.
Are there any serial numbers below?

┌┌─[lenovo@lenovo]─[~/Pictures]
└──╼ $lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 29.4G 0 disk
└─sda1 8:1 1 29.4G 0 part /media/lenovo/FC
sdb 8:16 1 117.4G 0 disk
└─sdb1 8:17 1 117.4G 0 part /media/lenovo/AE
sr0 11:0 1 1024M 0 rom
nvme0n1 259:0 0 1.8T 0 disk
├─nvme0n1p1 259:1 0 300M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1.8T 0 part
│ └─luks-abc 253:0 0 1.8T 0 crypt /home
└─nvme0n1p3 259:3 0 8.8G 0 part
└─luks-xyz 253:1 0 8.8G 0 crypt [SWAP]
┌─[lenovo@lenovo]─[~/Pictures]
└──╼ $
┌─[lenovo@lenovo]─[~/Pictures]
└──╼ $df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.7G 0 3.7G 0% /dev
tmpfs 760M 1.5M 759M 1% /run
/dev/dm-0 1.9T 64G 1.8T 4% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/nvme0n1p1 300M 360K 300M 1% /boot/efi
/dev/dm-0 1.9T 64G 1.8T 4% /home
tmpfs 760M 112K 760M 1% /run/user/1000
/dev/sda1 30G 29G 609M 98% /media/lenovo/FC
/dev/sdb1 118G 62G 56G 53% /media/lenovo/AE
┌─[lenovo@lenovo]─[~/Pictures]
└──╼ $

Last edited by linux-man; 03-08-2022 at 11:15 PM.
 
  


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
PHP - upload program won't run action "upload.php" script pizzipie Linux - Software 3 08-01-2016 09:51 PM
LXer: Upload Photos On Flickr With Frogr Flickr Upload Client For Linux LXer Syndicated Linux News 0 09-21-2015 11:42 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM
Proftpd upload to a folder other than 'upload' fooboo Linux - Software 4 04-27-2006 07:51 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 05:52 AM

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

All times are GMT -5. The time now is 10:23 AM.

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