chown

Screenshot of the chown command manual

The chown command is used on Unix-like systems to change the owner of a file. In most implementations, it can only be executed by the Superuser. Unprivileged (regular) users who wish to change the group of a file that they own may use chgrp.

Contents

Usage

The general syntax for the chown command is:

chown [-R] [[user]][:group] target1 [[target2 ..]]

Footnotes

Usage examples

$ chown root /var/run/httpd.pid
$ chown rob:developers strace.log
$ chown nobody:nobody /tmp /var/tmp
$ chown :512 /home
$ chown -R us base

See also

External links