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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to