2015-02-09 16:29:11 -05:00
|
|
|
.Dd February 9, 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
|
|
|
|
.Nd change the file group ownership
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl R
|
2015-02-09 16:26:53 -05:00
|
|
|
.Op Fl H
|
|
|
|
.Op Fl L
|
|
|
|
.Op Fl P
|
2015-01-30 15:17:58 -05:00
|
|
|
.Ar groupname
|
|
|
|
.Op Ar file...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2013-07-20 01:27:42 -04:00
|
|
|
sets the group id of the files specified by
|
2015-01-30 15:17:58 -05:00
|
|
|
.Ar file
|
2013-05-30 15:29:56 -04:00
|
|
|
to the gid of the group named
|
2015-01-30 15:17:58 -05:00
|
|
|
.Ar group.
|
2015-02-09 16:26:53 -05:00
|
|
|
.El
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl R
|
|
|
|
Change file group ownership recursively.
|
|
|
|
.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 15:17:58 -05:00
|
|
|
.Ar file .
|
|
|
|
.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
|
|
|
.El
|
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification except from the -h flag.
|