首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    setgid-修改权限的时候前边加的是2

    setgid详解 修改权限是让其他用户也有这个用户组下对应的权限,相当于 在这个用户组下一样 标记是 在-rwx–s–x 用户组那里的执行位是s [root@localhost ~]# chmod 711 /usr/bin/locate [root@localhost ~]# ls -l which locate -rwx–x–x. 1 root slocate 40512 11月 5 2016 /usr/bin/locate [root@localhost ~]# chmod 2711 /usr/bin/locate [root@localhost ~]# ls -l which locate -rwx–s–x. 1 root slocate 40512 11月 5 2016 /usr/bin/locate [root@localhost ~]# chmod 4711 /usr/bin/locate [root@localhost ~]# ls -l which locate -rws–x–x. 1 root slocate 40512 11月 5 2016 /usr/bin/locate [root@localhost ~]# chmod 2711 /usr/bin/locate [root@localhost ~]# ls -l which locate -rwx–s–x. 1 root slocate 40512 11月 5 2016 /usr/bin/locate [root@localhost ~]#

    02
    领券