some people might need root rights to change things within the root-context.
I found that session-setup-script of lightdm does not work, so there is no root-context within the user context.
use-case: I wish to chown files to the user when he/she logs in and than, of course do it again, when the next logs in.
workaround so far:
adopt sudoers to allow one script run by sudo
create that script linuxmuster-client/script/login-run-as-root
create a script linuxmuster-client/login.d/99-run-as-root which calls sudo -n -E ...login-run-as-root
REsult:
works for me.
Does not allow for several hook-scripts
not able to call the sourced scripts (write2log) etc.
some people might need root rights to change things within the root-context. I found that session-setup-script of lightdm does not work, so there is no root-context within the user context.
use-case: I wish to chown files to the user when he/she logs in and than, of course do it again, when the next logs in.
workaround so far:
linuxmuster-client/script/login-run-as-root
linuxmuster-client/login.d/99-run-as-root
which callssudo -n -E ...login-run-as-root
REsult: