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:
Source:
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:Source:
- https://askubuntu.com/questions/155874/is-it-possible-to-remove-lock-from-a-file-locked-through-root.
- https://xkcd.com/1200/
Comments
Post a Comment