Files
oldlinux-files/Minix/2.0.0/wwwman/man8/chown.8.html
2024-02-19 00:21:39 -05:00

74 lines
1.3 KiB
HTML

<HTML>
<HEAD>
<TITLE>chown(8)</TITLE>
</HEAD>
<BODY>
<H1>chown(8)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
chown - change owner
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>chown</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>chown</STRONG> <STRONG>ast</STRONG> <STRONG>file1</STRONG> <STRONG>file2</STRONG>
# Make <EM>ast</EM> the owner of the files
<STRONG>chown</STRONG> <STRONG>-R</STRONG> <STRONG>ast:other</STRONG> <STRONG>dir</STRONG>
# Change the owner and group of all files in dir
</PRE>
<H2>DESCRIPTION</H2><PRE>
The owner field (and optionally group field) of the named files is
changed to <EM>owner</EM> (i.e., login name specified) and <EM>group</EM> . Alternatively,
a decimal uid(gid) may be specified instead of a user name. Only the
superuser may execute this command.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man1/chgrp.1.html">chgrp(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>