Xfce terminal authentication

Hi guys!
How to get rid of this annoying popup dialog?
Thanks in advance.

1 Like

Did you only just issue the “su -” command to get that popup? I don’t know. When I issue that command I just get prompted for the root password in the terminal, not a graphical prompt. Do you know that that run-p… service is? Is it set to run whenever the root user logs in?

No, it pops up for any sudo command.
I know that this a systemd issue but I cannot solve it all day.

Did you check the root’s .profile, .bashrc, etc. for anything that might running any systemd service?

Try this:
env DISPLAY= sudo <command_here>

Also check the XFCE Settings Manager or whatever it’s called these days.

I’ve never seen something like that in xfce. It’s a systemd-run service I guess and I have no clue regarding that. Have you tried renaming your ~>/.config/xfce4 to temporarily set xfce4 to go back to the default config when you logout and login.
Have you tried tweaking some systemd config a while back?

See:
man systemd-run
for more clarity I guess.

See the snippet I grabbed below … see the green arrow pointing to the “> Details” prompt I’ve encased in a green box ?

Click on it … it usually shows the [software] calls that resulted in this pop-up … it might be a quick way to see what is being called.
.

@duschaan … one thing I failed to mention in my previous Reply:

The execution of “su -” is a discouraged execution method … we should execute “su -l” in these modern days :+1:

(the single hyphen can sometimes confuse command-line parsers)

Never heard of it. Which parsers? There should then be bug reports.

1 Like

Do you have any link which backs this claim?

Just read man su.

su -, su -l, and su --login are the same

OPTIONS
…
-, -l, –login Start the shell as a login shell with an environment similar to a real login. Note that on systemd(1)-based systems, a new session may be defined as a real entry point to the system. However, su does not create a real session (by PAM) from this point of view. You need to use tools like systemd-run(1) or machinectl(1) to initiate a complete, real session.

If your arbritrary “command-line parser” does not work with basic commands, a bugreport is required as already noted by Henk.

With “account-util” installed it’s now;

username@host:~> su -
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start transient unit 'run-p1230-i41051.service'.
Authenticating as: User Name,,, (username)
Password: 
==== AUTHENTICATION COMPLETE ====
host:~ #

To the OP, looks like if the system is not modified this scenario needs a bug report.

Looks like a similar bug report here ?
Is run0-wrappers installed? If so, uninstall it and install pkexec instead.

1 Like

Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.