2015-02-09 21:29:11 +00:00
|
|
|
.Dd February 9, 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
|
|
|
|
.Nd change the file group ownership
|
|
|
|
.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
|
|
|
|
.Ar file...
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2013-07-20 05:27:42 +00:00
|
|
|
sets the group id of the files specified by
|
2015-01-30 20:17:58 +00:00
|
|
|
.Ar file
|
2013-05-30 19:29:56 +00:00
|
|
|
to the gid of the group named
|
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
|
|
|
|
Change the group ID of the symlink itself. This flag cannot be used
|
|
|
|
with
|
|
|
|
.Op Fl R .
|
2015-02-09 21:26:53 +00:00
|
|
|
.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 20:17:58 +00:00
|
|
|
.Ar file .
|
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
|
|
|
|
.St -p1003.1-2008
|
2015-02-16 16:30:43 +00:00
|
|
|
specification.
|