Changing ownership of files and directories is done using the CHOWN command.
Example:
$ chown -R www-data:www-data sample
- R applies the change recursively
www-data:www-data is the user and group
sample is the target file or directory
Changing ownership of files and directories is done using the CHOWN command.
Example:
$ chown -R www-data:www-data sample
- R applies the change recursively
www-data:www-data is the user and group
sample is the target file or directory