官术网_书友最值得收藏!

Setuid

Another very interesting functionality is the setuid feature. If the setuid bit is set for a script, then the script will always run with the owner's privileges, irrespective of which user is running the script. If the administrator wants to run a script written by him by other users, then he can set this bit.

Consider either of the following situations:

    $ chmod u+s file_name
    $ chmod 4777 file 

The file permissions after any of the preceding two commands will be drwsrwxrwx.

主站蜘蛛池模板: 秭归县| 江达县| 美姑县| 四子王旗| 辛集市| 平塘县| 保德县| 龙州县| 合山市| 宁蒗| 峡江县| 宜兰县| 邵武市| 江口县| 阜城县| 新宾| 新田县| 沁水县| 苍山县| 黄平县| 永宁县| 东山县| 哈尔滨市| 绍兴市| 宜良县| 吴旗县| 车致| 东明县| 贵溪市| 嵊泗县| 周至县| 黎城县| 若羌县| 收藏| 洱源县| 潢川县| 邵东县| 上栗县| 开封市| 藁城市| 汉川市|