萌萌哒狠人 發表於 2024-4-10 00:00:00

浅谈linux rwxrwxrwt文件夹属性

<p>
        /tmp 的permission是rwxrwxrwt</p>
<p>
        chmod 0777 /abc       rwxrwxrwx</p>
<p>
        chmod  777 /abc        rwxrwxrwx</p>
<p>
        chmod 1777  /abc      rwxrwxrwt</p>
<p>
        <br>
        The "t" character in your permission indicates that only the user (and the root) that has created the file inside of /tmp folder can delete/modify that specific file.</p>
<p>
        suppose chmod 1777 /tmp</p>
<p>
        here is 2 part</p>
<p>
        1 and 777</p>
<p>
        1  mean : this file only be deleted by root, its called sticky bit ( i guess) need to check again</p>
<p>
        rwx          rwx            rw                 t<br>
        owner       group        other           only deleted by root</p>
<p>
        so this file is user has full access</p>
<p>
        group has full access</p>
<p>
        other has read and write</p>
<p>
        but this file only be deleted by root</p>
<p>
        以上这篇浅谈linux rwxrwxrwt文件夹属性就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。</p>
頁: [1]
查看完整版本: 浅谈linux rwxrwxrwt文件夹属性