⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chown.2

📁 Unix操作系统minix 2.0源码
💻 2
字号:
.\" Copyright (c) 1980 Regents of the University of California..\" All rights reserved.  The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\"	@(#)chown.2	6.6 (Berkeley) 5/22/86.\".TH CHOWN 2 "May 22, 1986".UC 4.SH NAMEchown \- change owner and group of a file.SH SYNOPSIS.nf.ft Bint chown(const char *\fIpath\fP, int \fIowner\fP, int \fIgroup\fP).ig \" You never know.PP.ft Bint fchown(int \fIfd\fP, int \fIowner\fP, int \fIgroup\fP)...fi.SH DESCRIPTIONThe filethat is named by \fIpath\fP.igor referenced by \fIfd\fP..has its.I ownerand .I groupchanged as specified.Only the super-usermay change the owner of the file,because if users were able to give files away,they could defeat file-space accounting procedures.The owner of the file may change the groupto a group of which he is a member..PPOn some systems,.I chownclears the set-user-id and set-group-id bitson the fileto prevent accidental creation ofset-user-id and set-group-id programs..SH "RETURN VALUEZero is returned if the operation was successful;\-1 is returned if an error occurs, with a more specificerror code being placed in the global variable \fBerrno\fP..SH "ERRORS.B Chownwill fail and the file will be unchanged if:.TP 15[ENOTDIR]A component of the path prefix is not a directory..TP 15[ENAMETOOLONG]The path name exceeds PATH_MAX characters..TP 15[ENOENT]The named file does not exist..TP 15[EACCES]Search permission is denied for a component of the path prefix..TP 15[ELOOP]Too many symbolic links were encountered in translating the pathname.(Minix-vmd).TP 15[EPERM]The effective user ID is not the super-user..TP 15[EROFS]The named file resides on a read-only file system..TP 15[EFAULT].I Pathpoints outside the process's allocated address space..TP 15[EIO]An I/O error occurred while reading from or writing to the file system..ig.PP.B Fchownwill fail if:.TP 15[EBADF].I Fddoes not refer to a valid descriptor..TP 15[EPERM]The effective user ID is not the super-user..TP 15[EROFS]The named file resides on a read-only file system..TP 15[EIO]An I/O error occurred while reading from or writing to the file system....SH "SEE ALSO".BR chown (8),.BR chgrp (1),.BR chmod (2).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -