Email or username:

Password:

Forgot your password?
6 comments
hexaheximal

@drewdevault So it will just disable that functionality if it's not an interactive environment? 🤔

Drew DeVault

@hexaheximal yeah, nonzero status code and print an error

hexaheximal

@drewdevault Nice. That works out pretty well. How does it handle authentication though?

hexaheximal

@drewdevault Thought so. :/

My biggest concern is that different people use different tools to escalate privileges. Most just use sudo, but some use doas or even just su.

I would personally handle this with a plugin (probably either dlopen-based or with a basic scripting language) architecture.

Go Up