This question already has an answer here:
- Change folder permissions and ownership 6 answers
How would I change the ownership of a recently made file to root user ownership from its original owner? Every time I type in the following (below), I get a message saying that it can't change the ownership.
touch myfile chown root myfile