Change Owner of All files within a Folder

Here is how to change Owner of Files and Folders in SSH as a Bulk

  • Login to SSH
  • Run chown -R user:usergroup /location/of/the/folder/*
$ chown -R user:usergroup /location/of/the/folder/*

Change Owner of one file

$ chown user:usergroup /location/of/the/folder/file-name.php

Find the list of files under an Owner

$ find /location/of/the/folder/ -user USERNAME

Originally posted on August 22, 2021 @ 12:01 pm

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.