2015-03-27 16:22:48 +00:00
|
|
|
.Dd March 27, 2015
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt CHGRP 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm chgrp
|
2015-03-08 22:31:59 +00:00
|
|
|
.Nd change file group ownership
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2015-02-16 16:30:43 +00:00
|
|
|
.Op Fl h
|
|
|
|
.Oo
|
|
|
|
.Fl R
|
|
|
|
.Op Fl H | L | P
|
|
|
|
.Oc
|
|
|
|
.Ar group
|
2015-03-08 22:31:59 +00:00
|
|
|
.Ar file ...
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-03-08 22:31:59 +00:00
|
|
|
sets the group id of each
|
2015-01-30 20:17:58 +00:00
|
|
|
.Ar file
|
2015-03-08 22:31:59 +00:00
|
|
|
to the gid of
|
2015-02-16 16:30:43 +00:00
|
|
|
.Ar group .
|
2015-02-09 21:26:53 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-02-16 16:30:43 +00:00
|
|
|
.It Fl h
|
2015-03-08 22:31:59 +00:00
|
|
|
Preserve
|
|
|
|
.Ar file
|
|
|
|
if it is a symbolic link.
|
2015-02-09 21:26:53 +00:00
|
|
|
.It Fl R
|
2015-03-08 22:31:59 +00:00
|
|
|
Change file group ownerships recursively.
|
2015-02-09 21:26:53 +00:00
|
|
|
.It Fl H
|
2015-03-08 22:31:59 +00:00
|
|
|
Dereference
|
|
|
|
.Ar file
|
|
|
|
if it is a symbolic link.
|
2015-02-09 21:26:53 +00:00
|
|
|
.It Fl L
|
2015-03-08 22:31:59 +00:00
|
|
|
Dereference all symbolic links.
|
2015-02-09 21:26:53 +00:00
|
|
|
.It Fl P
|
2015-03-08 22:31:59 +00:00
|
|
|
Preserve symbolic links. This is the default.
|
2015-02-10 16:37:57 +00:00
|
|
|
.El
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr chmod 1 ,
|
2015-01-31 13:43:27 +00:00
|
|
|
.Xr chown 1 ,
|
2015-01-30 20:17:58 +00:00
|
|
|
.Xr chmod 2 ,
|
2015-01-31 13:43:27 +00:00
|
|
|
.Xr chown 2 ,
|
2015-01-30 20:17:58 +00:00
|
|
|
.Xr getgrnam 3
|
2015-02-09 21:29:11 +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-16 16:30:43 +00:00
|
|
|
specification.
|