You can use the udb.u commands to manage individual user accounts.
Table 15–10 Summary of udb.g Commands|
Command Name |
Description |
|---|---|
|
udb.u.add |
Adds a new user account |
|
udb.u.cp |
Changes the password of the specified user |
|
udb.u.la |
Lists all user accounts |
|
udb.u.lo |
Retrieves information about the specified user. |
|
udb.u.lp |
Lists the permissions granted to the specified user |
|
udb.u.mod |
Modifies the specified user account |
This command adds a new user.
Table 15–11 Arguments and Result for the udb.u.add Command|
Argument |
Syntax |
Description |
|
|---|---|---|---|
|
nu |
[R] |
String |
The new user username |
|
np |
[R] |
String |
The new user password |
|
ng |
[O] |
GroupArray |
The new user groups |
|
hide |
[O] |
boolean |
Whether the user is set to hidden, default false |
|
result |
User |
The new user |
|
This command changes the password of the specified user.
Table 15–12 Arguments for the udb.u.cp Command|
Argument |
Syntax |
Description |
|
|---|---|---|---|
|
un |
[R] |
String |
The username of the user whose password should be changed |
|
op |
[R] |
String |
The old password |
|
np |
[R] |
String |
The new password |
This command lists all user accounts.
Table 15–13 Argument and Result for the udb.u.la Command|
Argument/Result |
Syntax |
Description |
|
|---|---|---|---|
|
sh |
[O] |
boolean |
Whether hidden users are shown, default false |
|
result |
UserArray |
The users |
|
The udb.u.lo command retrieves the specified user.
Table 15–14 Argument and Result for the udb.u.lo Command|
Argument/Result |
Syntax |
Description |
|
|---|---|---|---|
|
ID |
[R] |
UserID |
The user ID |
|
result |
User |
The user |
|
This command lists the permissions granted to a user.
Table 15–15 Argument/Result for the udb.u.lp Command|
Argument/Result |
Syntax |
Description |
|
|---|---|---|---|
|
ID |
[R] |
UserID |
The user ID |
|
result |
PermissionArray |
The permissions |
|
This command modifies an existing user; omitted arguments preserve current values
Table 15–16 Argument/Result for the udb.u.mod Command|
Argument/Result |
Syntax |
Description |
|
|---|---|---|---|
|
ID |
[R] |
UserID |
The user ID |
|
np |
[O] |
String |
The new user password |
|
ng |
[O] |
GroupArray |
The new user groups |
|
hide |
[O] |
Boolean |
Whether the user is set to hidden |
|
active |
[O] |
Boolean |
Whether the user is set to active |
|
result |
User |
The modified user |
|