How to change ownership recurisively in Linux
Run this command, replacing USER
and GROUP
with the user and group to which you would like the files changed; substitute DIRECTORY
for the folder whose ownership you would like to change:
chown -R USER:GROUP ./DIRECTORY
The -R
option means “use recursion.”
N.B. This command will change the ownership of every file and folder inside of DIRECTORY
, including DIRECTORY
.