Hi all, I created a geoprocessing task and it perfectly works.At the end I see that I have the same problem of this thread with arcgis server with linux:https://community.esri.com/t5/python-questions/arcgis-server-on-linux-python-unable-to-change-file-permissions/m-p/272973Does someone have the solution? Or I cant do anything to change the files permission from arcgis python?
Thanks,
Naty
There are several ways to call chmod via python. You can use os.chmod() from os and you can use Path.chmod() from pathlib depending on personally preference. Also, if you only need to set the user permissions os and shutil have chown() functions.
OS Python Docs
Python Pathlib Docs
Shutil Docs
both python versions have the "os" module, just check their version of "os" for exact syntax
I'm using ArcGIS Enterprise 10.8 so I think:
python can change file permissions, if it is possible
os — Miscellaneous operating system interfaces — Python 3.9.4 documentation
Changing file permission in Python - Stack Overflow
What version of python are you using?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.