[Python] rsrync make folder read-only for venv despite 777 and chown

Discussão em 'Python' iniciado por Stack, Junho 28, 2025.

  1. Stack

    Stack Membro Participativo

    Steps:


    1. Run rscyn on remote ssh server with folder with venv python, lets assume .venv.


    2. Run source .venv/bin/python3 on the either source or destination folder, lets assume *destination folder.


    3. Create empyt python file, lets assume some_file.py


    4. Run chmod 777 on destination folder:

      chmod -R 777 .


    5. Try to run with python any file in destination folder from destination folder:

      python some_file.py

    Expected:

    Python is running successfully.

    Actual:

    INFO: Will watch for changes in these directories: ['/home/taagcgaat/ollama_travel_assistant']
    ERROR: [Errno 13] Permission denied


    System:

    OS: Ubuntu 22 LTS

    Rsync version: 3.2.7

    selinux is disabled.

    Continue reading...

Compartilhe esta Página