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