Api/auth: Difference between revisions
Jump to navigation
Jump to search
(Created page with "the auth api is part of the [https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=46&sid=2ce2c9aa6ecdc05c0058253d52fe37ce auth-client package] and is used to manage auth users, groups and system ownership. most of these require the user to be an admin to use. '''''auth.useradd(username, password, admin)''''' adds a user to the rednet network, if admin == "ADM" then we try to make an admin in stead '''''auth.userdel(username)''''' delet...") |
No edit summary |
||
Line 4: | Line 4: | ||
'''''auth.useradd( | '''''[[Api/auth.useradd()|auth.useradd()]] -''''' adds a user | ||
'''''[[Api/auth.userdel()|auth.userdel()]] -''''' removes a user | |||
'''''[[Api/auth.setpass()|auth.setpass()]] -''''' changes password | |||
'''''auth. | '''''[[Api/auth.checkowner()|auth.checkowner()]] -''''' check ownership data | ||
'''''[[Api/auth.setowner()|auth.setowner()]] -''''' set ownership data | |||
'''''auth. | '''''[[Api/auth.delowner()|auth.delowner()]] -''''' delete ownership data | ||
'''''[[Api/auth.groupadd()|auth.groupadd()]] -''''' creates a group. | |||
'''''auth. | '''''[[Api/auth.groupdel()|auth.groupdel()]] -''''' deletes a group. | ||
'''''[[Api/auth.joingroup()|auth.joingroup()]] -''''' add users to groups | |||
'''''auth. | '''''[[Api/auth.leavegroup()|auth.leavegroup()]] -''''' removes users from groups | ||
'''''[[Api/auth.checkgroup()|auth.checkgroup()]] -''''' checks for group membership | |||
'''''auth. | |||
checks |
Revision as of 23:27, 24 September 2024
the auth api is part of the auth-client package and is used to manage auth users, groups and system ownership.
most of these require the user to be an admin to use.
auth.useradd() - adds a user
auth.userdel() - removes a user
auth.setpass() - changes password
auth.checkowner() - check ownership data
auth.setowner() - set ownership data
auth.delowner() - delete ownership data
auth.groupadd() - creates a group.
auth.groupdel() - deletes a group.
auth.joingroup() - add users to groups
auth.leavegroup() - removes users from groups
auth.checkgroup() - checks for group membership