2015-02-28 12:43:29 +00:00
|
|
|
.Dd February 17, 2015
|
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-01-30 20:17:58 +00:00
|
|
|
.Op Ar owner Op Ar :group
|
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-02-01 19:52:28 +00:00
|
|
|
changes the user or group ownership for the given
|
|
|
|
.Ar files .
|
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
|
|
|
|
Change the user ID and/or group ID of the symlink itself. This flag cannot be used
|
|
|
|
with
|
|
|
|
.Op Fl R .
|
2015-01-30 20:17:58 +00:00
|
|
|
.It Fl R
|
2015-02-01 19:52:28 +00:00
|
|
|
Change directory ownership recursively.
|
2015-02-09 21:25:58 +00:00
|
|
|
.It Fl H
|
|
|
|
Only dereference symbolic links that are passed as command line arguments when
|
|
|
|
recursively traversing directories.
|
|
|
|
.It Fl L
|
|
|
|
Always dereference symbolic links while recursively traversing directories.
|
|
|
|
.It Fl P
|
|
|
|
Don't dereference symbolic links (default).
|
2015-01-30 20:17:58 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr chown 2
|
2015-02-17 16:41:58 +00:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification.
|