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