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-p...
Does someone have the solution? Or I cant do anything to change the files permission from arcgis python?
Thanks,
Naty
What version of python are you using?
I'm using ArcGIS Enterprise 10.8 so I think:
Naty
both python versions have the "os" module, just check their version of "os" for exact syntax
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
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.