Change the owner for each directory
chown
$ chown -h -R user[:group name]Folder name
The options are as follows. | -c |If the ownership changes, the details will be displayed. | -f |Do not display an error message. | -h |If the specified file is a symbolic link, only the symbolic link will change ownership. Use this option if you want to change ownership of system files and directories in bulk. | -R |Recursively changes the ownership of the specified directory and the files and directories under that directory. | -v |View the details of the change of ownership.-c is only when changed.
See below https://webkaru.net/linux/chown-command/
Recommended Posts