Forums

chmod to write lib file

Hey, i'd like to change some lines in lib file but don't have permission to do it, so i run:

chmod g+w /usr/local/lib/python3.6/dist-packages/xlrd/compdoc.py

but got an error that

chmod: changing permissions of /usr/local/lib/python3.6/dist-packages/xlrd/compdoc.py: Operation not permitted

how can i do that? thanks

You can't. Those files are system files that are shared between users and you cannot change them.