0
我希望更改我不是擁有者,但擁有組rwx訪問權限的文件的權限。當我嘗試類似chmod 777 <file>
,我得到了以下錯誤:如何更改作爲組成員的文件權限
chmod: Unable to change file mode on <file>: Operation not permitted
有沒有辦法更改文件權限爲不使用sudo組成員?最終,我希望在Python中編寫這樣的任務,並且不希望處理密碼/ root的麻煩。