Linux指令學習(八)

1、組別操做linux

配置文件:    etc/groupshell

1)建立組  group  addit

2)修改組    group modify配置

3)刪除組    group delete    //若是組下面有用戶存在,就禁止刪除file

2、文件權限權限

權限自己劃分:讀Read、寫Write、執行eXecute程序

權限針對用戶劃分:主人    User、同組用戶Group、其餘組用戶Otherim

1)chmod指令配置文件

>chmod u+erw filename      //給filename文件的主人增長讀寫執行權限腳本

>chmod g-rx filename        //給filename文件的同組用戶    刪除讀、執行的權限

>chmod u+w,g-rx,o+rw  filename              

>chmod +/- rwx filename      //無視具體組別,統一所有的組設置權限

2)數字絕對方式執行權限

0:沒有權限

1:執行

2:寫

3:寫、執行

4:讀

5:讀、執行

6:讀、寫

7:讀、寫、執行

3)shell腳本程序批量執行linux指令

>vi out.sh    //建立shell腳本文件

>./out.sh     //執行以上程序

相關文章
相關標籤/搜索