If you accidentally ran a GUI application with sudo , it might have created config files in your home folder owned by root , locking you out of your own settings. 5. Essential Safety Tips
To change the owner of a file named report.txt to a user named alex : sudo chown alex report.txt Use code with caution. Change the Owner and the Group chown command in linux
If you’ve ever run into a "Permission Denied" error even though the file permissions looked correct, there’s a good chance the ownership was the culprit. Here is a comprehensive guide to mastering the chown command. 1. The Basic Syntax If you accidentally ran a GUI application with
Use ls -l before and after running chown to verify the current owners. chown command in linux