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

📄 chown.8

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 8
字号:
.\" SCCSID: @(#)chown.8	8.2	3/14/91.TH chown 8.SH Namechown \- change owner and, optionally, group.SH Syntax.B /etc/chown[.B \-fR].IR owner [. group ] .IR file ....SH Description.NX R "chown command".NX R "file" "changing owner"The.PN chowncommand changes the owner and, optionally, group for one or more filesand directories.  The value for.I filecan be a full or partial path.  The value for .I owner can be either a decimal UID or a login name found in the password file.The value for .I group can be either a decimal GID or a group name found in the group file.  .PPOnly the superuser can change the ownership of a file.  The superusercan also change the group of a file.  The owner of a file can onlychange the .I group, but the owner must be a member of any group specified..SH Options.IP \-f 5Inhibits display of errors that are returned when .PN chowncannot change the owner or group of the specified files..IP \-RCauses .PN chownto recursively descend any directories subordinate to.I fileand to set the owner, group, or both for each file encountered.  Whensymbolic links are encountered, .PN chownchanges the owner and group for the link file itself but does nottraverse the path associated with the link.  The .PN \-Roption is useful only when.I fileis a directory that is not empty..SH ExamplesChange the owner of .PN myfile to ecbell:.EX/etc/chown ecbell myfile.EE.PPChange the owner of .PN myfile to craig and group of .PN myfile to admin:.EX/etc/chown craig.admin myfile.EE.PPChange the owner to richart and group to eng for the directories.PN projecta and .PN projectb and for all files and directories on any levels subordinate to .PN projectaand .PN projectb :.EX/etc/chown \-R richart.eng projecta projectb.EE.SH Files.TP 15.PN /etc/passwd.TP 15.PN /etc/group.TP 15.PN /etc/yp/src/passwd.TP 15.PN /etc/yp/src/group.SH See Alsochgrp(1), chown(2), group(5), group(5yp), passwd(5), passwd(5yp)

⌨️ 快捷键说明

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