Change file ownership (Linux)

PROBLEM: I cannot open some folders or use them properly.
SOLUTION: Change ownership of the file.

For single files

chown username filename

For directory

chown -R username directory/

For changing owner and group

chown username:group file

or

chown -R username:group directory/

Leave a Reply

Your email address will not be published. Required fields are marked *