next up previous contents
Next: 1.8.2 1.8.2 Changing permissions Up: 1.8 File and Directory Previous: 1.8 File and Directory   Contents

1.8.1 1.8.1 Changing ownership

The ownership of files can be changed by root. This is done using the chown command.

root@localhost $ ls -l thisfile

-rw-rw-r- 1 joe joe 29 Mar 26 19:23 thisfile

root@localhost $ chown sam.sam thisfile

-rw-rw-r- 1 sam sam 29 Mar 26 19:23 thisfile