Class luci.sys.user
LuCI system utilities / user related functions.
Functions
| getuser (uid) | Retrieve user informations for given uid. |
| checkpasswd (username, password) | Test whether given string matches the password of a given system user. |
| setpasswd (username, password) | Change the password of given user. |
Functions
- getuser (uid)
-
Retrieve user informations for given uid.
Parameters
- uid: Number containing the Unix user id
Return value:
Table containing the following fields: { "uid", "gid", "name", "passwd", "dir", "shell", "gecos" } - checkpasswd (username, password)
-
Test whether given string matches the password of a given system user.
Parameters
- username: String containing the Unix user name
- password: String containing the password to compare
Return value:
Boolean indicating wheather the passwords are equal - setpasswd (username, password)
-
Change the password of given user.
Parameters
- username: String containing the Unix user name
- password: String containing the password to compare
Return value:
Number containing 0 on success and >= 1 on error