Changing Ownership of Files and Directories with chown
Suppose you've been working on a file called rowyourboat, and your boss decides to let a coworker, Merrilee, take over the project. In this case, to fully pawn off the project to your coworker, you need to change ownership of the file from you to her. Depending on how your system administrator set up the system, you can usually change ownership of files using chown (Code Listing 5.6).
Code Listing 5.6. Changing ownership of files transfers complete control.
To change ownership with chown: