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.
For Example:
touch myfile
chown root myfile
sudo
beforechmod
– Sergiy Kolodyazhnyy Dec 03 '16 at 01:45root
user is allowed to change file ownerships. To execute a command with privileged permissions, you can usesudo
("switch user and do" - in this case, "switch to root and do"). – Henning Kockerbeck Dec 03 '16 at 01:47