Project Wild Penguin 4.4.2017: Removing lock from a file locked through root

While working on my secret project. I came across several files on my external hard drive that had a lock icon on them. On researching, I found that it is because that my current user has only read permission and write permission is for root user only.

So, I searched for a way to remove the root lock from the files. I came across several solutions. The best one is the following:

chmod ugo+rw myfile.txt
 
 
Enjoy thix xkcd comic about authorization:

Authorization


 Source:
  • https://askubuntu.com/questions/155874/is-it-possible-to-remove-lock-from-a-file-locked-through-root.
  • https://xkcd.com/1200/



Comments

Popular posts from this blog

Project Wild Penguin 22.4.2017: To delete directories inside current directory whose contents are less than a given size

ANPR Project Day 1: Standard Format of Indian Number Plate

ANPR Day 5: User requirement Analysis