blob: 1fc0fd53d91b326e604ec8b9e235ba7fa5d2d0e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
## Name
chown - change file owner / group
## Synopsis
```**sh
$ chown [user][:group] files...
```
## Description
`chown` changes the owner of specified files to `user`, and owning group to `group`. If `group` is not specified, it is left unchanged.
**NOTE**: The caller must be a superuser to change user ownership. Other users can use `chown` to change the group to one of their other
group.
## Examples
```sh
# Change 'file' owner and group to 'anon':
$ chown anon:anon file
# Change 'file' owner to 'root', leave group unchanged:
# chown root file
```
## See also
* [`chgrp`(1)](chgrp.md)
* [`chmod`(1)](chmod.md)
|