linux下對一個文件設(shè)置多個組的權(quán)限setfaclgetfac
linux下對一個文件設(shè)置多個組的權(quán)限setfaclgetfac
/*********************************************************************。*Author:Samson。*Date:03/02/2014。*Testplatform。*Linuxubuntu3.2.0-58-generic-pae。*GNUbash,version4.2.39。********************************************************************/。//要設(shè)置的文件的信息。v0id6@v0id6-eof~$lstestacl-la。-rw-rw-r--+1v0id6v0id693月214:21testacl。 。
導(dǎo)讀/*********************************************************************。*Author:Samson。*Date:03/02/2014。*Testplatform。*Linuxubuntu3.2.0-58-generic-pae。*GNUbash,version4.2.39。********************************************************************/。//要設(shè)置的文件的信息。v0id6@v0id6-eof~$lstestacl-la。-rw-rw-r--+1v0id6v0id693月214:21testacl。 。
![](https://img.51dongshi.com/20250104/wz/18542805752.jpg)
?以上就是系統(tǒng)大全給大家介紹的如何使的方法都有一定的了解了吧,好了,如果大家還想了解更多的資訊,那就趕緊點擊系統(tǒng)大全官網(wǎng)吧。/**********************************************************************Author:Samson*Date:03/02/2014*Testplatform:*Linuxubuntu3.2.0-58-generic-pae*GNUbash,version4.2.39********************************************************************///要設(shè)置的文件的信息:v0id6@v0id6-eof~$lstestacl-la-rw-rw-r--+1v0id6v0id693月214:21testacl?//獲得文件的訪問控制列表(此項為沒有使用setfacl設(shè)置前的值)v0id6@v0id6-eof~$getfacltestacl#file:testacl#owner:v0id6#group:v0id6user::rw-group::r--other::r--?//配置多個組能夠讀寫的權(quán)限v0id6@v0id6-eof~$setfacl-mg:v0id6:rw,g:yygydjtest:rwtestaclv0id6@v0id6-eof~$getfacltestacl#file:testacl#owner:v0id6#group:v0id6user::rw-group::r--group:v0id6:rw-group:yygydjtest:rw-mask::rw-other::r--?//刪除組控制權(quán)限v0id6@v0id6-eof~$setfacl-xg:yygydjtesttestaclv0id6@v0id6-eof~$getfacltestacl#file:testacl#owner:v0id6#group:v0id6user::rw-group::r--group:v0id6:rw-mask::rw-other::r--?NOTE:關(guān)于組名的獲取和配置請使用cat/etc/group查看當(dāng)前已經(jīng)存在的分組也可使用groupadd進行添加本文來自系統(tǒng)大全http:///如需轉(zhuǎn)載請注明!推薦:win7純凈版
linux下對一個文件設(shè)置多個組的權(quán)限setfaclgetfac
/*********************************************************************。*Author:Samson。*Date:03/02/2014。*Testplatform。*Linuxubuntu3.2.0-58-generic-pae。*GNUbash,version4.2.39。********************************************************************/。//要設(shè)置的文件的信息。v0id6@v0id6-eof~$lstestacl-la。-rw-rw-r--+1v0id6v0id693月214:21testacl。 。
為你推薦