Warn on CLI execution as root to prevent permission problems

XMLWordPrintable

    • Critical
    • In order to prevent permission problems in the file system the CLI tools are printing a confirm warning when running as root.

      problem

      If CLI tools are run as root, that might lead to files / fragments created as root breaking permissions when the rest of the application is running as www-data / apache user.

      solution

      1. Implement a check in the translate5 CLI which shows a warning if running as root which must be confirmed: You are running as root and not as USER_OF_DATA_DIR. This might lead to broken file permissions. Are you sure to continue? Yes/No.
      2. Add to Environment System Requirement Check in ZfExtended_Models_SystemRequirement_Modules_Environment a check which: 
        • checks recursivly if there are files under data (APPLICATION_DATA) which are not belonging to the same user as the data dir itself. Shows that as error.
        • checks if data is belonging to root, show that as warning

            Assignee:
            Thomas Lauria
            Reporter:
            Thomas Lauria
            Axel Becher
            Stephan Bergmann, Sylvia Schumacher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: