LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File manager cannot access Downloads. Permission denied. Other folders are accessible. (https://www.linuxquestions.org/questions/linux-general-1/file-manager-cannot-access-downloads-permission-denied-other-folders-are-accessible-4175696569/)

tuckthetux 06-17-2021 11:42 AM

File manager cannot access Downloads. Permission denied. Other folders are accessible.
 
Hello!

I had tinkered with the downloads folder via the terminal some days ago . I can't remember what I did. Now I can't open the downloads folder.

I'm getting this error when trying to open that folder:
Code:

Unable to access /home/tux001/Downloads

Permission denied

Other folders work fine.

OS: Debian 10 on Chromebook
File manager: Space FM

Any help and suggestions are appreciated.
Thanks in advance!

HappyTux 06-17-2021 12:41 PM

Use ls -l ~/ in Terminal to check the permissions of the other folders, it will show you what you messed up with the Downloads. Simply change the permissions of the Downloads folder to match the others and you will have access again.

Bonzoo 06-17-2021 01:57 PM

Open a terminal. type sudo followed by the file manager you run.Right click downloads or whichever file is fighting you... Click properties...then the permissions tab. Set it however you want
sudo pcmanfm
sudo thunar
It only takes a second

tuckthetux 06-19-2021 10:00 AM

Thank you @HappyTux and @Bonzoo!
I used both of your advices and finally I can open the folder.

Using ls -l ~/ and simultaneously checking permissions from inside file manager I learnt and confirmed that downloads folder was owned by _apt and group was root.
Then I changed the file and group ownerships by following the instructions I found in https://linuxcommand.org/lc3_lts0090.php

And later I changed the permissions from inside the file manager. I tried the terminal method as explained in above article but failed.
But it's all done now. I can't thank enough both of you! Thanks again!


All times are GMT -5. The time now is 09:14 AM.