doc: improved commands & added warning to TESTING.md
@@ -41,16 +41,21 @@ You have some options to avoid running them as root:
(which is also what `make run_nokdbtests` does)
2. To give your user the permissions to the relevant paths execute the lines
below once as root.
- First load the required information and make sure that all paths are correct:
+
+ **Warning: Changing permissions on the wrong paths can be harmful! Please make
+ sure that the paths are correct.**
+ In doubt make sure that you have a backup of the affected directories.
+
+ First load the required information and verify the paths:
```
kdb mount-info
- echo `kdb get system/info/elektra/constants/cmake/CMAKE_INSTALL_PREFIX`/`kdb get system/info/elektra/constants/cmake/KDB_DB_SPEC`
- echo `kdb get system/info/elektra/constants/cmake/KDB_DB_SYSTEM`
+ echo `kdb sget system/info/elektra/constants/cmake/CMAKE_INSTALL_PREFIX .`/`kdb sget system/info/elektra/constants/cmake/KDB_DB_SPEC .`
+ echo `kdb sget system/info/elektra/constants/cmake/KDB_DB_SYSTEM .`
```
Then change the permissions:
```
- chown -R `whoami` `kdb get system/info/elektra/constants/cmake/CMAKE_INSTALL_PREFIX`/`kdb get system/info/constants/cmake/KDB_DB_SPEC`
- chown -R `whoami` `kdb get system/info/elektra/constants/cmake/KDB_DB_SYSTEM`
+ chown -R `whoami` `kdb sget system/info/elektra/constants/cmake/CMAKE_INSTALL_PREFIX .`/`kdb get system/info/constants/cmake/KDB_DB_SPEC .`
+ chown -R `whoami` `kdb sget system/info/elektra/constants/cmake/KDB_DB_SYSTEM .`
```
After that all test cases should run successfully as described above.
3. Compile Elektra so that system paths are not actual system paths, e.g. to write everything into
