User accounts provide one way for users to access the system. For each account, you define the login name for the user, properties for the user account, and authentication information. After you create an account, the software creates a home directory for the user when the user logs in to the system for the first time.
Each user has a home directory on the C Series Controller, which is created the first time that the user logs in. Home directories that have the same name as the user ID are created in the /var/home directory; for example, the home directory for a user with the user ID Chris_Bee is /var/home/Chris_Bee.
Use the following configuration statements to configure user accounts at the [edit] hierarchy level.
- system login user user-name {
- class class;
- full-name full-name;
- uid uid;
- prompt prompt;
- level (basic | normal | advanced | expert);
- complete-on-space (on | off);
- }
- system login user user-name authentication {
- plain-text-password;
- encrypted-password " password ";
- ssh-authorized-keys [ssh-authorized-keys ...];
- }
For detailed information about each configuration statement, see the SRC PE CLI Command Reference.
To configure a user account:
The username must be unique within the system. Do not include spaces, colons, or commas in the username. For example:
user@host#
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.
If the full name contains spaces, enclose it in quotation marks. Do not include colons or commas. For example:
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.
where:
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;
}