I am new to unix.I want to write a script to change the ownership of files from root to myuser.Script which will check the ownership and if found as root will change it to myuser.The script should also log errors to a file.I know how to change ownership of files but not sure about putting the same in a scriptPlease help.
Script to change ownership of files
chown