2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt CHOWN 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm chown
|
|
|
|
.Nd change file ownership
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2015-02-17 16:41:58 +00:00
|
|
|
.Op Fl h
|
|
|
|
.Oo
|
|
|
|
.Fl R
|
|
|
|
.Op Fl H | L | P
|
|
|
|
.Oc
|
2015-12-21 18:37:10 +00:00
|
|
|
.Ar owner Ns Op Pf : Op Ar group
|
|
|
|
.Op Ar file ...
|
|
|
|
.Nm
|
|
|
|
.Op Fl h
|
|
|
|
.Oo
|
|
|
|
.Fl R
|
|
|
|
.Op Fl H | L | P
|
|
|
|
.Oc
|
|
|
|
.Pf : Ar group
|
2015-01-30 20:17:58 +00:00
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-12-21 18:37:10 +00:00
|
|
|
sets the user and/or group id of each
|
2015-03-08 23:37:34 +00:00
|
|
|
.Ar file
|
|
|
|
to the uid of
|
|
|
|
.Ar owner
|
2015-12-21 18:37:10 +00:00
|
|
|
and/or the gid of
|
2015-03-08 23:37:34 +00:00
|
|
|
.Ar group
|
|
|
|
respectively.
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-02-17 16:41:58 +00:00
|
|
|
.It Fl h
|
2015-03-08 23:37:34 +00:00
|
|
|
Preserve
|
|
|
|
.Ar file
|
|
|
|
if it is a symbolic link.
|
2015-01-30 20:17:58 +00:00
|
|
|
.It Fl R
|
2015-03-08 23:37:34 +00:00
|
|
|
Change file ownerships recursively.
|
2015-02-09 21:25:58 +00:00
|
|
|
.It Fl H
|
2015-03-08 23:37:34 +00:00
|
|
|
Dereference
|
|
|
|
.Ar file
|
|
|
|
if it is a symbolic link.
|
2015-02-09 21:25:58 +00:00
|
|
|
.It Fl L
|
2015-03-08 23:37:34 +00:00
|
|
|
Dereference all symbolic links.
|
2015-02-09 21:25:58 +00:00
|
|
|
.It Fl P
|
2020-03-01 22:37:31 +00:00
|
|
|
Preserve symbolic links.
|
|
|
|
This is the default.
|
2015-01-30 20:17:58 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2015-03-08 23:37:34 +00:00
|
|
|
.Xr chmod 1 ,
|
|
|
|
.Xr chown 2 ,
|
|
|
|
.Xr getgrnam 3 ,
|
|
|
|
.Xr getpwnam 3
|
2015-02-17 16:41:58 +00:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
2015-03-27 16:22:48 +00:00
|
|
|
.St -p1003.1-2013
|
2015-02-17 16:41:58 +00:00
|
|
|
specification.
|