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
|
|
|
|
.Op Fl R
|
2015-02-09 21:26:53 +00:00
|
|
|
.Op Fl H
|
|
|
|
.Op Fl L
|
|
|
|
.Op Fl P
|
2015-01-30 20:17:58 +00:00
|
|
|
.Ar groupname
|
|
|
|
.Op Ar file...
|
|
|
|
.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-01-30 20:17:58 +00:00
|
|
|
.Ar group.
|
2015-02-09 21:26:53 +00: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 20:17:58 +00:00
|
|
|
.Ar file .
|
|
|
|
.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
|
|
|
.El
|
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification except from the -h flag.
|