diff --git a/docs/api.md b/docs/api.md index 9c6bf2d..fbbf5bd 100644 --- a/docs/api.md +++ b/docs/api.md @@ -17,6 +17,16 @@ Returns a list of current processes running, the key being the pid and the value Returns the name, parent process, and user ID for process *pid*. #### os.genenv() Generates an insulated environment table for running processes in. +#### os.getuid(*pid*) +Returns the user ID for process *pid*, or if *pid* is not specified, the current process. +#### os.setuid(*user*) +Only if the current user ID is "superuser": Sets the user ID for the process to *user*. +#### os.verifyuser(*user*,*pass*) +Returns true or false if *pass* is the correct password for *user*. +#### os.gensalt(*len*) +Generates *len* random printable characters and returns them. +#### os.su(*user*,*pass*) +Sets the user ID of the current process to *user* if *user* and *password* are verified by `os.verifyuser`. ### event #### event.get()