summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/chown.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1/chown.1')
-rw-r--r--usr/src/man/man1/chown.187
1 files changed, 23 insertions, 64 deletions
diff --git a/usr/src/man/man1/chown.1 b/usr/src/man/man1/chown.1
index 9d8209b132..66a80566ad 100644
--- a/usr/src/man/man1/chown.1
+++ b/usr/src/man/man1/chown.1
@@ -1,16 +1,16 @@
'\" te
-.\" Copyright 1989 AT&T
-.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
+.\" Copyright 1989 AT&T
+.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
.\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
.\" Portions Copyright (c) 1982-2007 AT&T Knowledge Ventures
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH chown 1 "11 Jul 2008" "SunOS 5.11" "User Commands"
+.TH CHOWN 1 "Jul 11, 2008"
.SH NAME
chown \- change file ownership
.SH SYNOPSIS
@@ -127,23 +127,19 @@ user name.
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-f\fR\fR
.ad
.RS 6n
-.rt
Force. Does not report errors.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-h\fR\fR
.ad
.RS 6n
-.rt
If the file is a symbolic link, this option changes the owner of the symbolic
link. Without this option, the owner of the file referenced by the symbolic
link is changed.
@@ -151,12 +147,10 @@ link is changed.
.sp
.ne 2
-.mk
.na
\fB\fB-H\fR\fR
.ad
.RS 6n
-.rt
If the file specified on the command line is a symbolic link referencing a file
of type directory, this option changes the owner of the directory referenced by
the symbolic link and all the files in the file hierarchy below it. If a
@@ -166,12 +160,10 @@ target file is changed, but no recursion takes place.
.sp
.ne 2
-.mk
.na
\fB\fB-L\fR\fR
.ad
.RS 6n
-.rt
If the file is a symbolic link, this option changes the owner of the file
referenced by the symbolic link. If the file specified on the command line, or
encountered during the traversal of the file hierarchy, is a symbolic link
@@ -182,12 +174,10 @@ below it.
.sp
.ne 2
-.mk
.na
\fB\fB-P\fR\fR
.ad
.RS 6n
-.rt
If the file specified on the command line or encountered during the traversal
of a file hierarchy is a symbolic link, this option changes the owner of the
symbolic link. This option does not follow the symbolic link to any other part
@@ -196,12 +186,10 @@ of the file hierarchy.
.sp
.ne 2
-.mk
.na
\fB\fB-s\fR\fR
.ad
.RS 6n
-.rt
The owner and/or group arguments are Windows SID strings. This option requires
a file system that supports storing SIDs, such as ZFS.
.RE
@@ -217,12 +205,10 @@ the behavior of \fBchown\fR.
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-R\fR\fR
.ad
.RS 6n
-.rt
Recursive. \fBchown\fR descends through the directory, and any subdirectories,
setting the specified ownership \fBID\fR as it proceeds. When a symbolic link
is encountered, the owner of the target file is changed, unless the \fB-h\fR or
@@ -236,12 +222,10 @@ is encountered, the owner of the target file is changed, unless the \fB-h\fR or
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-R\fR\fR
.ad
.RS 6n
-.rt
Recursive. \fBchown\fR descends through the directory, and any subdirectories,
setting the specified ownership \fBID\fR as it proceeds. When a symbolic link
is encountered, the owner of the target file is changed, unless the \fB-h\fR or
@@ -256,7 +240,6 @@ The following options are supported by the \fBksh93\fR built-in \fBchown\fR
command:
.sp
.ne 2
-.mk
.na
\fB\fB-c\fR\fR
.ad
@@ -271,7 +254,6 @@ Describe only files whose ownership actually changes.
.sp
.ne 2
-.mk
.na
\fB\fB-f\fR\fR
.ad
@@ -286,7 +268,6 @@ Do not report files whose ownership fails to change.
.sp
.ne 2
-.mk
.na
\fB\fB-l | h\fR\fR
.ad
@@ -301,7 +282,6 @@ Change the ownership of the symbolic links on systems that support this option.
.sp
.ne 2
-.mk
.na
\fB\fB-m\fR\fR
.ad
@@ -327,7 +307,6 @@ match for each file. Unmatched files are silently ignored.
.sp
.ne 2
-.mk
.na
\fB\fB-n\fR\fR
.ad
@@ -342,7 +321,6 @@ Show actions but do not execute.
.sp
.ne 2
-.mk
.na
\fB\fB-r\fR\fR
.ad
@@ -357,7 +335,6 @@ Omit the explicit ownership operand and use the ownership of the file instead.
.sp
.ne 2
-.mk
.na
\fB\fB-v\fR\fR
.ad
@@ -372,7 +349,6 @@ Describe the changed permissions of all files.
.sp
.ne 2
-.mk
.na
\fB\fB-H\fR\fR
.ad
@@ -388,7 +364,6 @@ links when traversing directories.
.sp
.ne 2
-.mk
.na
\fB\fB-L\fR\fR
.ad
@@ -403,7 +378,6 @@ Follow symbolic links when traversing directories.
.sp
.ne 2
-.mk
.na
\fB\fB-P\fR\fR
.ad
@@ -418,7 +392,6 @@ Do not follow symbolic links when traversing directories.
.sp
.ne 2
-.mk
.na
\fB\fB-R\fR\fR
.ad
@@ -433,7 +406,6 @@ Recursively change ownership of directories and their contents.
.sp
.ne 2
-.mk
.na
\fB\fB-X\fR\fR
.ad
@@ -452,12 +424,10 @@ Canonicalize output for testing.
The following operands are supported:
.sp
.ne 2
-.mk
.na
\fB\fIowner\fR[\fB:\fR\fIgroup\fR]\fR
.ad
.RS 17n
-.rt
A user \fBID\fR and optional group \fBID\fR to be assigned to \fBfile\fR. The
\fIowner\fR portion of this operand must be a user name from the user database
or a numeric user \fBID\fR. Either specifies a user \fBID\fR to be given to
@@ -473,12 +443,10 @@ the group \fBID\fR number associated with that group name is used as the group
.sp
.ne 2
-.mk
.na
\fB\fIfile\fR\fR
.ad
.RS 17n
-.rt
A path name of a file whose user \fBID\fR is to be modified.
.RE
@@ -515,35 +483,29 @@ that affect the execution of \fBchown\fR: \fBLANG\fR, \fBLC_ALL\fR,
The following exit values are returned:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR\fR
.ad
.RS 6n
-.rt
The utility executed successfully and all requested changes were made.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
-.rt
An error occurred.
.RE
.SH FILES
.sp
.ne 2
-.mk
.na
\fB\fB/etc/passwd\fR\fR
.ad
.RS 15n
-.rt
System password file
.RE
@@ -556,17 +518,16 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIEnabled. See NOTES.
+CSI Enabled. See NOTES.
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-StandardSee \fBstandards\fR(5).
+Standard See \fBstandards\fR(5).
.TE
.SS "/usr/xpg4/bin/chown"
@@ -574,17 +535,16 @@ StandardSee \fBstandards\fR(5).
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIEnabled. See \fBNOTES\fR.
+CSI Enabled. See \fBNOTES\fR.
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-StandardSee \fBstandards\fR(5).
+Standard See \fBstandards\fR(5).
.TE
.SS "ksh93"
@@ -592,13 +552,12 @@ StandardSee \fBstandards\fR(5).
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilitySee below.
+Interface Stability See below.
.TE
.sp