如何使用chmod?(图文教程)

 时间:2024-10-14 03:41:39

1、以目录/home/test为例,可以看到用户redhat3对其有读写执行的权利,而和redhat3用户同一组root用户以及其他用户只有读和执行权利,但是没有写的权利[root@localhost home]# ls -altotal 36drwxr-xr-x 6 root root 4096 Jan 28 12:20 .drwxr-xr-x 21 root root 4096 Jan 27 20:20 ..drwxr-xr-x 5 redhat3 redhat3 4096 Jan 28 11:57 edadrwx------ 2 root root 16384 Jan 25 20:40 lost+founddrwx------ 13 redhat3 redhat3 4096 Jan 28 12:03 redhat3drwxr-xr-x 2 redhat3 root 4096 Jan 28 12:20 test[root@localhost home]#

如何使用chmod?(图文教程)

3、若执行下列命令,则redhat3用户和同一root组用户以及其他用户都有读写执行的权利[root@localhost home]# chmod 777 /home/test/[root@localhost home]# ls -altotal 36drwxr-xr-x 6 root root 4096 Jan 28 12:20 .drwxr-xr-x 21 root root 4096 Jan 27 20:20 ..drwxr-xr-x 5 redhat3 redhat3 4096 Jan 28 11:57 edadrwx------ 2 root root 16384 Jan 25 20:40 lost+founddrwx------ 13 redhat3 redhat3 4096 Jan 28 12:03 redhat3drwxrwxrwx 2 redhat3 root 4096 Jan 28 12:20 test

如何使用chmod?(图文教程)

5、若执行下列命令,则redhat3用户和同一root组用户,有读写执行的权利,而其他用户只有读和执行写权利,而没有写权利[root@localhost home]# chmod 775 /home/test/[root@localhost home]# ls -altotal 36drwxr-xr-x 6 root root 4096 Jan 28 12:20 .drwxr-xr-x 21 root root 4096 Jan 27 20:20 ..drwxr-xr-x 5 redhat3 redhat3 4096 Jan 28 11:57 edadrwx------ 2 root root 16384 Jan 25 20:40 lost+founddrwx------ 13 redhat3 redhat3 4096 Jan 28 12:03 redhat3drwxrwxr-x 2 redhat3 root 4096 Jan 28 12:20 test

如何使用chmod?(图文教程)

7、若执行下列命令,则redhat3用户和同一root组用户,有读写执行的权利,而其他用户只有写权利,而没有读和执行权利[root@localhost home]# chmod 772 /home/test/[root@localhost home]# ls -altotal 36drwxr-xr-x 6 root root 4096 Jan 28 12:20 .drwxr-xr-x 21 root root 4096 Jan 27 20:20 ..drwxr-xr-x 5 redhat3 redhat3 4096 Jan 28 11:57 edadrwx------ 2 root root 16384 Jan 25 20:40 lost+founddrwx------ 13 redhat3 redhat3 4096 Jan 28 12:03 redhat3drwxrwx-w- 2 redhat3 root 4096 Jan 28 12:20 test

如何使用chmod?(图文教程)
  • 笔记本电脑怎样清理风扇灰尘/如何消除风扇杂音
  • ShareX 文字识别
  • 如何同步多块NI PCI DSA板卡
  • Chrome怎样对标签页进行分组
  • 高级安全Windows防火墙
  • 热门搜索
    辽宁省旅游地图 西递宏村旅游 元旦旅游 贵州省内旅游 贵阳旅游网 赤峰旅游景点大全 锦溪古镇旅游攻略 袁家村旅游攻略 甘肃省旅游局 旅游网站建设方案