Locked Sudo files. Can not delete files with lock on even when I enter them by password (Sudo)

I have problems by erasing files which are protected by Sudo (a lock appears on the file icon)
file locked

I did try to access the file by entering PW and try to delete by CLI.

Can someone please refere me to an example where I can erase the two locked files by using the Terminal.

in Files right click on icon of app, choose properties > Permissions to change permissions. It will write error message if some is wrong.

1 Like

From the terminal you can use “ls -l” to see the ownership/permissions of those files. You can also use “sudo rm filename” to delete the file. If that does not work then “sudo rm -f filename” should work as well.

1 Like

You can start GNOME Files with admin privileges:
Alt+F2:

nautilus admin:

However you must be careful not to break the system.

3 Likes

Seems like they are gone now. Thank you computersavvy

That an nice accessmethod. I could directly enter into the files I wanted. Thank you vgaetera

1 Like