-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServiceManager::install doesn't prompt for credentials on Linux #7
Comments
@nu11ptr which service manager are you using? Systemd? |
Yes, sorry....Systemd |
It looks like running |
@nu11ptr, when you did the install with this library, did you configure it with As for being able to start/stop/etc, if you aren't running as user, then my guess is your account as permission to manager some root-level services similar to an account in the |
No, this is for a system level install, but I think you are misunderstanding. I may not be explaining it well. My distro (and many distros I suspect) pop up a "privilege escalation box" when I execute Onto the issue. Technically, your library is doing nothing wrong, however, your install action does |
Okay, that makes sense, thanks for sharing! Is there a specific process on linux that is controlling the UAC-like experience and permission granting? Wondering if there's a way to tap into the session. If we knew what it was, we could possibly add a check if that exists and is needed, and trigger the dialog ourselves if we're able to grant a script or something permission to execute. Just don't know anything about it. |
Tbh, same here. I know nothing about it. It just caught me off guard when 3 of 4 ops triggered it but the 4th didn't. Now that I see why. It would be neat to trigger it, but just don't know how either or even what the feature is called. |
Can you share a screenshot of the dialog? |
I typed "systemctl start test" on my PopOS 22.04 (Ubuntu derivative) box to get that |
On PopOs (Ubuntu clone) 22.04,
uninstall
,start
, andstop
all prompt for elevated credentials, however,install
does not. It works fine when running my program withsudo
, however. I wasn't sure if this is something the API itself triggered and was out of your control or something your library was triggering (I admit I didn't check your source), so I thought I would file a bug report just in case.Without
sudo
,install
immediately reports:The text was updated successfully, but these errors were encountered: