[sudo-users] Sudo permissions detection

Scott Robinson scott at quadhome.com
Tue May 9 09:12:17 EDT 2006


On Tue, May 09, 2006 at 12:48:10AM -0600, Bob Proulx wrote:
> Scott Robinson wrote:
> > Is there a way to programmatically determine if a user (myself) has a
> > valid timestamp?
> 
> I suppose you could do something like this, and then check the return
> code.
> 
>   echo | sudo -S true
> 

That would be perfect except it fills the event log with authentication
failure warnings...

Scott.

-- 
http://quadhome.com/            - Personal webpage
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: </pipermail/sudo-users/attachments/20060509/11701975/attachment.bin>


More information about the sudo-users mailing list