Hi Daniel,

Daniel Hartwig wrote:

> Is there a robust way for a *user* to detect if root login is
> disabled?  Would like to perform such a check from an instance of
> aptitude running as a user account.

Check if the user is in the "sudo" group.  Not 100% reliable, but
it might do.

Even better would be to use pkexec from the policykit-1 package.

Hope that helps,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to