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

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.

主站蜘蛛池模板: 浠水县| 衡阳市| 东阿县| 厦门市| 宁武县| 马关县| 滁州市| 固镇县| 墨玉县| 林周县| 赣榆县| 聂荣县| 来安县| 莱阳市| 云梦县| 南投县| 黑山县| 廉江市| 兴城市| 卓资县| 万年县| 广元市| 牟定县| 大城县| 定远县| 泰安市| 安陆市| 乌什县| 揭阳市| 朝阳县| 玛曲县| 合作市| 区。| 罗平县| 玉门市| 桃源县| 都昌县| 北宁市| 镇康县| 滁州市| 榆中县|