Skip to content

Instantly share code, notes, and snippets.

@haio
Created March 31, 2013 05:22
Show Gist options
  • Save haio/5279639 to your computer and use it in GitHub Desktop.
Save haio/5279639 to your computer and use it in GitHub Desktop.
chown
示例
要更改文件 program.c 的所有者:
chown jim program.c
program.c 的用户访问权限现在应用到 jim。作为所有者,jim 可以使用 chmod 命令允许或拒绝其他用户访问 program.c。
要将目录 /tmp/src 中所有文件的所有者和组更改为用户 john 和组 build:
chown -R john:build /tmp/src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment