Does anyone know how to change a file´s ownership?
Printable View
Does anyone know how to change a file´s ownership?
from command line as root
for exampleCode:chown (username): /file/location
Code:chown andy: /etc/ircd
For the record, the colon after the user's name is not necessary. What that does is also change the file to the user's group.
While it is recommended, if, for some reason, you don't want to do that, you could just say:
Code:chown alex my_file
Thanks for the help.