chown.8 (476602a9d0b9041b42a108349dc58a4ca6bf4223) | chown.8 (2e08522b020e16b9e2ce58588b229f5e03e23abc) |
---|---|
1.\" Copyright (c) 1990, 1991, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)chown.8 8.3 (Berkeley) 3/31/94 | 1.\" Copyright (c) 1990, 1991, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)chown.8 8.3 (Berkeley) 3/31/94 |
33.\" $Id$ | 33.\" $Id: chown.8,v 1.4 1997/02/22 16:04:35 peter Exp $ |
34.\" 35.Dd March 31, 1994 36.Dt CHOWN 8 37.Os BSD 4 38.Sh NAME 39.Nm chown 40.Nd change file owner and group 41.Sh SYNOPSIS 42.Nm chown 43.Oo 44.Fl R 45.Op Fl H | Fl L | Fl P 46.Oc 47.Op Fl f | 34.\" 35.Dd March 31, 1994 36.Dt CHOWN 8 37.Os BSD 4 38.Sh NAME 39.Nm chown 40.Nd change file owner and group 41.Sh SYNOPSIS 42.Nm chown 43.Oo 44.Fl R 45.Op Fl H | Fl L | Fl P 46.Oc 47.Op Fl f |
48.Op Fl h |
|
48.Ar owner Op Ar :group 49.Ar file ... 50.Nm chown 51.Oo 52.Fl R 53.Op Fl H | Fl L | Fl P 54.Oc 55.Op Fl f | 49.Ar owner Op Ar :group 50.Ar file ... 51.Nm chown 52.Oo 53.Fl R 54.Op Fl H | Fl L | Fl P 55.Oc 56.Op Fl f |
57.Op Fl h |
|
56.Ar :group 57.Ar file ... 58.Sh DESCRIPTION 59.Nm Chown 60sets the user ID and/or the group ID of the specified files. 61.Pp 62The options are as follows: 63.Bl -tag -width Ds --- 11 unchanged lines hidden (view full) --- 75.Fl R 76option is specified, no symbolic links are followed. 77.It Fl R 78Change the user ID and/or the group ID for the file hierarchies rooted 79in the files instead of just the files themselves. 80.It Fl f 81Don't report any failure to change file owner or group, nor modify 82the exit status to reflect such failures. | 58.Ar :group 59.Ar file ... 60.Sh DESCRIPTION 61.Nm Chown 62sets the user ID and/or the group ID of the specified files. 63.Pp 64The options are as follows: 65.Bl -tag -width Ds --- 11 unchanged lines hidden (view full) --- 77.Fl R 78option is specified, no symbolic links are followed. 79.It Fl R 80Change the user ID and/or the group ID for the file hierarchies rooted 81in the files instead of just the files themselves. 82.It Fl f 83Don't report any failure to change file owner or group, nor modify 84the exit status to reflect such failures. |
85.It Fl h 86If the file is a symbolic link, change the user ID and/or the group ID 87of the link itself rather than the file that the link points to. |
|
83.El 84.Pp | 88.El 89.Pp |
85Symbolic links don't have owners, so unless the 86.Fl H 87or 88.Fl L 89option is set, 90.Nm chown 91on a symbolic link always succeeds and has no effect. | |
92The 93.Fl H , 94.Fl L 95and 96.Fl P 97options are ignored unless the 98.Fl R 99option is specified. --- 28 unchanged lines hidden (view full) --- 128utility exits 0 on success, and >0 if an error occurs. 129.Sh COMPATIBILITY 130Previous versions of the 131.Nm chown 132utility used the dot (``.'') character to distinguish the group name. 133This has been changed to be a colon (``:'') character so that user and 134group names may contain the dot character. 135.Pp | 90The 91.Fl H , 92.Fl L 93and 94.Fl P 95options are ignored unless the 96.Fl R 97option is specified. --- 28 unchanged lines hidden (view full) --- 126utility exits 0 on success, and >0 if an error occurs. 127.Sh COMPATIBILITY 128Previous versions of the 129.Nm chown 130utility used the dot (``.'') character to distinguish the group name. 131This has been changed to be a colon (``:'') character so that user and 132group names may contain the dot character. 133.Pp |
136Previous versions of the 137.Nm chown 138utility changed the owner of symbolic links specified on the command 139line. 140In this system, symbolic links do not have owners. | 134On previous versions of this system, symbolic links did not have 135owners. |
141.Sh SEE ALSO 142.Xr chgrp 1 , 143.Xr find 1 , 144.Xr chown 2 , 145.Xr fts 3 , 146.Xr symlink 7 147.Sh STANDARDS 148The 149.Nm chown 150command is expected to be POSIX 1003.2 compliant. 151.Sh HISTORY 152A 153.Nm 154command appeared in 155.At v1 . | 136.Sh SEE ALSO 137.Xr chgrp 1 , 138.Xr find 1 , 139.Xr chown 2 , 140.Xr fts 3 , 141.Xr symlink 7 142.Sh STANDARDS 143The 144.Nm chown 145command is expected to be POSIX 1003.2 compliant. 146.Sh HISTORY 147A 148.Nm 149command appeared in 150.At v1 . |