Skip to content
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

question - can there be a demote function #6

Open
millerthegorilla opened this issue Mar 23, 2019 · 2 comments
Open

question - can there be a demote function #6

millerthegorilla opened this issue Mar 23, 2019 · 2 comments

Comments

@millerthegorilla
Copy link

This seems like a great idea. I tried it it though and the pkexec window wouldn't disappear, and the process didn't continue executing.
Is there a way of demoting the process to std user privileges afterwards?

@catb0t
Copy link

catb0t commented Apr 2, 2019

In my Factor port of elevate I added lowered, I plan to add it here in a future pull request. It's pretty simple to quickly implement for your own code though, much simpler than elevate, so you could just do that until it makes it into master.

By the way, it's not possible / a no-op on Windows, so the implementation only makes sense on POSIX / Unix

My implementation in a concatenative language

StackOverflow Example in C, easy to translate to Python

@catb0t
Copy link

catb0t commented Apr 2, 2019

pkexec window wouldn't disappear, and the process didn't continue executing.

Is a separate bug. Please write a new issue including your code (or was it just the example code?) and your platform information, Python version etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants