Document how to invalidate the sudo time stamp file
Fixes: https://github.com/jorangreef/sudo-prompt/issues/11
This commit is contained in:
parent
1ae88ad24c
commit
8336d3baa4
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue