Skip to content
Permalink
Browse files

Document how to invalidate the sudo time stamp file

Fixes: #11
  • Loading branch information...
Juan Cruz Viotti
Juan Cruz Viotti committed Feb 9, 2016
1 parent 1ae88ad commit 8336d3baa4a82f63c25dfc438d449537a0918c3e
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.md
@@ -46,3 +46,10 @@ On OS X, you can issue multiple calls to `sudo.exec` concurrently, and `sudo-pro
On Linux, `sudo` usually has `tty-tickets` enabled. This prevents `sudo-prompt` from batching up multiple permission requests, and will result in a separate password prompt for each call.

While `sudo-prompt` may batch up calls, you should never rely on `sudo-prompt` to execute your calls in order. For example, several calls may be waiting on a password prompt, and the next call after the password prompt may execute before any of these calls. If you need to enforce ordering of calls, then you should explicitly order your calls in your application.

## Invalidating the timestamp
You can invalidate the user's `sudo` timestamp file to force the prompt to appear by running the following command in your terminal:

```sh
$ sudo -k
```

0 comments on commit 8336d3b

Please sign in to comment.
You can’t perform that action at this time.