To configure a user account:
- [edit]
- user@host# edit system login user user-name
The username must be unique within the system. Do not include spaces, colons, or commas in the username. For example:
- [edit]
- user@host# edit system login user JASmith
- [edit system login user JASmith]
user@host#
- [edit system login user user-name ]
- user@host# set class class
The login class is one of the login classes that you defined in the class statement at the [edit system login] hierarchy level, or one of the default classes listed in Table 7 on page 64.
- [edit system login user user-name ]
- user@host# set full-name full-name
If the full name contains spaces, enclose it in quotation marks. Do not include colons or commas. For example:
- [edit system login user JASmith]
- user@host# set full-name “ John A. Smith”
- [edit system login user user-name ]
- user@host# set uid uid
The identifier must be a number in the range 0 through 64,000 and must be unique within the system. If you do not assign a UID to a username, the software assigns one when you commit the configuration, preferring the lowest available number.
You must ensure that the UID is unique. However, it is possible to assign the same UID to different users.
- [edit system login user user-name ]
- user@host# set prompt prompt
- [edit system login user user-name ]
-
user@host# set level (basic
| normal | advanced | expert)
where:
- [edit system login user user-name ]
-
user@host# set complete-on-space (on | off)
If you do not enter a value, complete-on-space is enabled by default.
[edit system login]
user@host# show
. . .
user JASmith {
class network-mgmt;
full-name "John A. Smith";
uid 507;
gid 100;
authentication {
encrypted-password "{crypt}caZEWDaE1au0c";
}
level normal;
complete-on-space on;
}
[edit system login]
user@host# show
. . .
user JASmith {
class network-mgmt;
full-name "John A. Smith";
uid 507;
gid 100;
authentication {
encrypted-password "{crypt}caZEWDaE1au0c";
}
level normal;
complete-on-space on;
}