Merge pull request #12 from jviotti/doc/timestamp-invalidation

Document how to invalidate the sudo time stamp file
This commit is contained in:
Joran Dirk Greef 2016-02-09 15:25:22 +02:00
commit 52e86354ba

View file

@ -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
```