I need to run a program (libreoffice) as another user. I noticed that the program started in the background when invoked as kdesudo -u otheruser libreoffice, possibly to avoid social engineering attacks.
(in the below text, "logged-in user" refers to me, not "otheruser")
- Is it safe to run an untrusted program in this way?
- Does it affect the current logged-in user? (file and process access in the context of the logged-in user)
Denial of Service attacks by fork-bombs, using excess CPU, etc. are excluded since those can occur too if I login directly on otheruser. For clarity, I'm looking for differences between running programs in directly when logged in as otheruser and running programs using kdesudo, gksudo and sudo.