3.31. Changing a File's Owner: chownIf for some reason you ever want to relinquish ownership of a file, you may do so by using the chown utility (Figure 3-43).
Linux allows only a super-user to change the ownership of a file. Several occasions when the system administrator needs to use chown are described in Chapter 14, "System Administration." If I had been a super-user, I could have executed the following sequence of commands to change the ownership of "heart.final" to "tim" and then back to "glass" again: # ls -l heart.final ...before. -rw-r----- 1 glass music 213 Jan 31 00:12 heart.final # chown tim heart.final ...change the owner to "tim". # ls -l heart.final ...after. -rw-r----- 1 tim music 213 Jan 31 00:12 heart.final # chown glass heart.final ...change the owner back. # _ |