- 1、本文档共68页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
命令 Meaning含义 chmod 400 file 文件模式400 file To protect a file against accidental overwriting.为了保护防止意外覆盖文件。 chmod 500 directory 文件模式500 directory To protect yourself from accidentally removing, renaming or moving files from this directory.为了保护自己不小心删除,重命名或移动从这个目录中的文件。 chmod 600 file 文件模式600 file A private file only changeable by the user who entered this command.私人文件只由用户自己可以读写。 chmod 644 file 文件模式644 file A publicly readable file that can only be changed by the issuing user.一个公开可读的文件,只能由属主用户更改。 chmod 660 file 文件模式660 file Users belonging to your group can change this file, others dont have any access to it at all.属主,属主,属组可以改变这个文件,其他人没有任何权限。 chmod 700 file 文件模式700 file Protects a file against any access from other users, while the issuing user still has full access.属主属主完全访问,其他用户没有任何权限。 chmod 755 directory 文件模式755 directory For files that should be readable and executable by others, but only changeable by the issuing user.对于文件应该和其他人可读可执行文件,但只能属主可以读写执行。 chmod 775 file 文件模式775 file Standard file sharing mode for a group.标准的文件为一组共享模式。 chmod 777 file 文件模式777 file Everybody can do everything to this file.每个人都可以读写执行该文件。 文件保护的文件模式 登录到其他组 asim:~ id uid=501(asim) gid=501(asim) groups=100(users),501(asim),3400(web) asim:~ grep asim /etc/passwd asim:x:501:501:Asim El Baraka:/home/asim:/bin/bash asim:~ grep 501 /etc/groupasim:x:501: asim:/var/www/html newgrp web asim:/var/www/html id uid=501(asim) gid=3400(web) groups=100(users),501(asim),3400(web) asim:/var/www/html touch test asim:/var/www/html ls -l test -rw-rw-r-- 1 asim web 0 Jun 10 15:38 test 文件掩码 由它可以指定默认创建文件和目录的权限 linda@linda-desktop:~$ mkdir test1 linda@linda-desktop:~$ ls -ld test1 drwxr-xr-x 2 linda linda 4096 2010-04-07 08:44 test1 linda@linda-desktop:~$ touch bb linda@linda-desktop:~$ ls -l bb -rw-r--r-- 1 linda linda 0 2010-04-07 08:45 bb linda@linda-desktop:~$ umask 0022 注意:目录默认具有执行权限,文件没有 改变用户和组 chown OWNER[:[GROUP]] FILE... jacky:~ id uid=1304(jacky) gid=(1304) groups=1304(jacky),2034(pproj
文档评论(0)