chmod.2 (108028) | chmod.2 (108087) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 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.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1980, 1991, 1993 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.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 |
33.\" $FreeBSD: head/lib/libc/sys/chmod.2 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/chmod.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd June 4, 1993 36.Dt CHMOD 2 37.Os 38.Sh NAME 39.Nm chmod , 40.Nm fchmod , 41.Nm lchmod --- 134 unchanged lines hidden (view full) --- 176.It Bq Er ELOOP 177Too many symbolic links were encountered in translating the pathname. 178.It Bq Er EPERM 179The effective user ID does not match the owner of the file and 180the effective user ID is not the super-user. 181.It Bq Er EROFS 182The named file resides on a read-only file system. 183.It Bq Er EFAULT | 34.\" 35.Dd June 4, 1993 36.Dt CHMOD 2 37.Os 38.Sh NAME 39.Nm chmod , 40.Nm fchmod , 41.Nm lchmod --- 134 unchanged lines hidden (view full) --- 176.It Bq Er ELOOP 177Too many symbolic links were encountered in translating the pathname. 178.It Bq Er EPERM 179The effective user ID does not match the owner of the file and 180the effective user ID is not the super-user. 181.It Bq Er EROFS 182The named file resides on a read-only file system. 183.It Bq Er EFAULT |
184.Fa Path | 184The 185.Fa path 186argument |
185points outside the process's allocated address space. 186.It Bq Er EIO 187An I/O error occurred while reading from or writing to the file system. 188.It Bq Er EFTYPE 189An attempt was made to set the sticky bit upon an executable. 190.El 191.Pp 192The 193.Fn fchmod 194system call will fail if: 195.Bl -tag -width Er 196.It Bq Er EBADF 197The descriptor is not valid. 198.It Bq Er EINVAL | 187points outside the process's allocated address space. 188.It Bq Er EIO 189An I/O error occurred while reading from or writing to the file system. 190.It Bq Er EFTYPE 191An attempt was made to set the sticky bit upon an executable. 192.El 193.Pp 194The 195.Fn fchmod 196system call will fail if: 197.Bl -tag -width Er 198.It Bq Er EBADF 199The descriptor is not valid. 200.It Bq Er EINVAL |
201The |
|
199.Fa fd | 202.Fa fd |
203argument |
|
200refers to a socket, not to a file. 201.It Bq Er EROFS 202The file resides on a read-only file system. 203.It Bq Er EIO 204An I/O error occurred while reading from or writing to the file system. 205.El 206.Sh SEE ALSO 207.Xr chmod 1 , --- 26 unchanged lines hidden --- | 204refers to a socket, not to a file. 205.It Bq Er EROFS 206The file resides on a read-only file system. 207.It Bq Er EIO 208An I/O error occurred while reading from or writing to the file system. 209.El 210.Sh SEE ALSO 211.Xr chmod 1 , --- 26 unchanged lines hidden --- |