2015-10-08 11:15:08 -04:00
|
|
|
.Dd 2015-10-08
|
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-12-21 13:37:10 -05: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 15:17:58 -05:00
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-12-21 13:37:10 -05:00
|
|
|
sets the user and/or group id of each
|
2015-03-08 19:37:34 -04:00
|
|
|
.Ar file
|
|
|
|
to the uid of
|
|
|
|
.Ar owner
|
2015-12-21 13:37:10 -05:00
|
|
|
and/or the gid of
|
2015-03-08 19:37:34 -04:00
|
|
|
.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
|
2015-03-27 12:22:48 -04:00
|
|
|
.St -p1003.1-2013
|
2015-02-17 11:41:58 -05:00
|
|
|
specification.
|