亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

File permission settings

In enterprise management, certain users or certain user files are only allowed to be read and not modified. These are very commonly used functions.

Note:

1. This chapter is an understanding chapter. If you have not learned Linux before and it will be a bit difficult, you can skip this chapter and learn about it.

2. It is less useful in actual production processes.

3. Mainly for students who have a comprehensive knowledge system under Linux and can focus on learning.

4. Some functions under windows cannot be implemented.



QQ截圖20161009112329.png


The above function usage and Linux permissions The usage is the same.
It is relatively easy for students who have learned Linux. Those who have not learned it will find it a little difficult.

I will only give you an example to see how to modify permissions:

chmod mainly modifies the permissions of files

<?php
//修改linux  系統(tǒng)/var/wwwroot/某文件權限為755
chmod("/var/wwwroot/index.html", 755); 
chmod("/var/wwwroot/index.html", "u+rwx,go+rx");
chmod("/somedir/somefile", 0755);
?>


Continuing Learning
||
<?php //修改linux 系統(tǒng)/var/wwwroot/某文件權限為755 chmod("/var/wwwroot/index.html", 755); chmod("/var/wwwroot/index.html", "u+rwx,go+rx"); chmod("/somedir/somefile", 0755); ?>
submitReset Code