Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2670  / 2 Years ago, sat, january 1, 2022, 6:31:59

I have a folder which has a lock emblem on it. When I try to delete the folder, I get a Permission Denied error message.


folder which has a "lock" icon


More From » directory

 Answers
4

That lock icon means that you do not have the permission to edit that folder or write anything inside of it.


The reason of this, might be several things.



  1. You are not the owner of that folder. If this is a multi-user desktop, it could belong to some other user, or to the root user. Check the ownership in right click to the folder> Properties> Permissions.



  2. The folder could be read-only. On Linux, folders have 3 bits of permissions, read, write, execute. If the write bit is not set to 1 (True), you are not allowed to edit or write inside that folder. Check the properties in right click to the folder> Properties> Permissions.




If you are the owner of this folder, you can change the permissions to allow writing in to that folder from the same place that you have checked.


If you are not the owner of this folder, and if this is a multi-user setup, ask the owner to have the permission to write. If this is a single user setup, run this command on a terminal to change the ownership of the file (substitute username with your username):


sudo chown username:username /path/to/that/folder

[#219] Sunday, January 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionodest

Total Points: 252
Total Questions: 122
Total Answers: 100

Location: Liechtenstein
Member since Tue, Apr 27, 2021
3 Years ago
ionodest questions
Wed, May 12, 21, 03:21, 3 Years ago
Tue, Feb 22, 22, 09:46, 2 Years ago
Thu, Jun 30, 22, 12:12, 2 Years ago
Wed, May 4, 22, 18:48, 2 Years ago
;