Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872
Rep:
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.
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:
There's no code tags to post
Quote:
Originally Posted by Debian6to11
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)
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?
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:
Quote:
Originally Posted by breaker
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.
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.
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:
They are just screenshots I saved to pictures folder and to my usb
Quote:
Originally Posted by breaker
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.
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.
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.
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:
Quote:
Originally Posted by breaker
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.