Sun N1 Service Provisioning System 5.2 Command-Line Interface Reference Manual

udb.u: Managing User Accounts

You can use the udb.u commands to manage individual user accounts.

Table 14–10 Summary of udb.u 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 

udb.u.add

This command adds a new user.

Table 14–11 Arguments and Result for the udb.u.add Command

Argument 

Syntax 

Description 

nu 

Required 

String 

The user name of the new user 

np 

[O/R] 

String 

The plaintext password for the new user; required if an encoded password is not available or supplied. 

nep 

[O/R] 

String 

The encoded password for the new user; required if a plaintext password is not available or supplied. 

ng 

Optional 

GroupArray 

The user groups for the new user 

hide 

Optional 

Boolean 

Whether the user is set to hidden, default false 

loginConfig 

[O/R] 

String 

Login configuration to use for this user; default is ``internal,'' if available, otherwise required 

result 

User 

The new user 

udb.u.cp

This command changes the password of the specified user.

Table 14–12 Arguments for the udb.u.cp Command

Argument 

Syntax 

Description 

un 

Required 

String 

The user name of the user whose password should be changed. 

op 

[O/R] 

String 

The old plaintext password.  

oep 

[O/R] 

String 

The old encoded password. 

np 

[O/R] 

String 

The new plaintext password. 

nep 

[O/R] 

String 

The new encoded password. 

udb.u.la

This command lists all user accounts.

Table 14–13 Argument and Result for the udb.u.la Command

Argument/Result 

Syntax 

Description 

sh 

Optional 

Boolean 

Whether hidden users are shown, default false 

result 

UserArray 

The users 

udb.u.lo

The udb.u.lo command retrieves the specified user.

Table 14–14 Argument and Result for the udb.u.lo Command

Argument/Result 

Syntax 

Description 

ID 

Required 

UserID 

The user ID 

result 

User 

The user 

udb.u.lp

This command lists the permissions granted to a user.

Table 14–15 Argument/Result for the udb.u.lp Command

Argument/Result 

Syntax 

Description 

ID 

Required 

UserID 

The user ID 

result 

PermissionArray 

The permissions 

udb.u.mod

This command modifies an existing user; omitted arguments are overwritten.

Table 14–16 Argument/Result for the udb.u.mod Command

Argument/Result 

Syntax 

Description 

ID 

Required 

UserID 

The user ID 

np 

Optional 

String 

The new plaintext password for the user, cannot be used in conjunction with the an encoded password 

nep 

Optional 

String 

The new encoded password for the user, cannot be used in conjunction with the a plaintext password 

ng 

Optional 

GroupArray 

The new user groups for the user 

hide 

Optional 

Boolean 

Whether the user is set to hidden 

active 

Optional 

Boolean 

Whether the user is set to active 

forceFlush 

Optional 

Boolean 

True means flush the user's session variables, if needed, false means abort the modification. Defaults to false. 

loginConfig 

Optional 

String 

The new login configuration for the user 

result 

User 

The modified user