資料夾權限 - Linux

Table of Contents

請問我有個資料夾test
我希望任何使用者在這個資料夾建立的檔案或資料夾
的群組都是test
不管a使用者或b使用者在test建立任何資料夾或檔案
都給他預設群組test
希望會的人可以解答
謝謝!!

--

All Comments

Delia avatarDelia2010-04-13
chmod g+s /test
Eartha avatarEartha2010-04-13
我用a使用者建立資料夾或檔案群組還是a並不會變test
Leila avatarLeila2010-04-18
得先chown root:test /test
Christine avatarChristine2010-04-18
s這個特殊權限是繼承設定目錄的group
Ingrid avatarIngrid2010-04-21
SGID就可以達成了!chmod g+s /test