In the old days of CentOS 5, I had an application that ran as another user.
I created a .desktop file which ran a command that looked like this:
gksu -u anotheruser someapplication
When the user clicked the icon,
a popup asked for the password of "anotheruser".
When the password was correct, "someapplication" started.
Now in the modern days of CentOS 7,
I can't find a replacement for this behaviour.
I tried beesu:
beesu -l -P someapplication anotheruser
but it is asking me for the root password instead of "anotheruser" password.
I also tried pkexec:
pkexec --user anotheruser someapplication
with the same result.
Both methods also have problems finding the correct display variable:
Failed to parse arguments: Cannot open display:
Any help will be appreciated.
Asked by user1403360
(2030 rep)
Nov 30, 2015, 12:51 PM
Last activity: May 8, 2025, 02:00 AM
Last activity: May 8, 2025, 02:00 AM