-
Type:
Bug
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: Translate5 CLI
-
Critical
-
In order to prevent permission problems in the file system the CLI tools are printing a confirm warning when running as root.
-
Emptyshow more show less
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
- 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.
- 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