74 lines
1.6 KiB
HTML
74 lines
1.6 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>chgrp(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>chgrp(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
chgrp - change group
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>chgrp</STRONG> <STRONG>[-R</STRONG>] [<EM>owner</EM>:]<EM>group</EM> <EM>file</EM> ...
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-R</STRONG> Change directory hierarchies
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>chgrp</STRONG> <STRONG>system</STRONG> <STRONG>file1</STRONG> <STRONG>file2</STRONG>
|
|
# Make <EM>system</EM> the group of the files
|
|
|
|
<STRONG>chrgp</STRONG> <STRONG>-R</STRONG> <STRONG>other</STRONG> <STRONG>dir1</STRONG> # Make <EM>other</EM> the group of all files below dir1
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
The group field (and optionally owner field) of the named files is
|
|
changed to <EM>group</EM> and <EM>owner</EM> . Alternatively, a decimal gid (uid) may be
|
|
specified instead of a group name. If the <STRONG>-R</STRONG> flag is used, the changes
|
|
will be applied recursively to all files in named directories. Only the
|
|
superuser may execute this command to set arbitrary groups. Normal users
|
|
can only change the group if they own the file, and the group is their
|
|
own group (Minix), or one of their supplementary groups (Minix-vmd).
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/chown.1.html">chown(1)</A></STRONG>, <STRONG><A HREF="../man1/chmod.1.html">chmod(1)</A></STRONG>, <STRONG><A HREF="../man1/ls.1.html">ls(1)</A></STRONG>, <STRONG><A HREF="../man2/chown.2.html">chown(2)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|