标签: python macos
我希望更改我不是所有者但具有rwx组访问权限的文件的权限。当我尝试chmod 777 <file>之类的内容时,我收到以下错误:
chmod 777 <file>
chmod: Unable to change file mode on <file>: Operation not permitted
有没有办法在没有使用sudo的情况下将文件权限更改为组成员?最后,我希望在Python中编写这样的任务,并且不希望处理密码/ root的麻烦。
答案 0 :(得分:1)
您只能更改自己的文件和文件夹的权限 主人。
自:
http://support.apple.com/kb/HT2963