SSH : Change Owner of files and folders

0
28

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/*

Change Owner of one file

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

Find the list of files under a Owner

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*