Student Notebook
User password
If the user name requires a password, the system will prompt for the password in a
similar manner. While the user is typing a password, it does not appear on the screen. It
is highly recommended to use passwords on all user accounts.
If the user password was set up by the system administrator, the first time that the user
logs in to the system, the user will be prompted to change their password.
Successful login
When logged in, the user is presented with a prompt (normally a dollar sign) which is
the shell's way of requesting a command.
Exiting the system
To terminate the session the user may either enter the exit or logout command, or
press the key combination <Ctrl+d> (holding down the Ctrl key while pressing the d
key). The <Ctrl+d> combination generates the “end of file” (EOF) or “end of
transmission” (EOT) character.
logout only works if you are in your login shell.
When the user logs out, after a few seconds a new login prompt will appear on the
screen.
2-4 AIX 7 Basics
V3.1
Student Notebook
Uempty
Passwords
z Creating or Changing:
$ passwd
Changing password for "team01"
team01's Old password:
team01's New password:
Enter the new password again:
$
Figure 2-3. Passwords
Notes:
Changing the user password
The user password is the primary mechanism for ensuring security on an AIX system.
All passwords are encrypted and cannot be decoded by other users.
The passwd command is used to change the user password and is an example of a
simple command which may be entered at the shell prompt.
The system will start the passwd process which will prompt the user for their old
password first. The characters typed are not displayed to the screen. To prevent users
being locked out of the system through a simple typing error, the new password is
entered twice. Only if the two entries match is the new password accepted. The old
password is invalid thereafter.
When the passwd process terminates, the user is again presented with the prompt
requesting another command.
Unit 2. Using the System 2-5
Student Notebook
Command Format
AIX commands have the following format:
$ command option(s) argument(s)
$ ls
$ ls –l
$ ls /dev
$ ls –l /dev
Figure 2-4. Command Format
Notes:
Formatting a command
The order and separation of the elements of a command are important. The command
or process name must come first. Spaces are used by the shell as separators on the
command line and should not be placed within the command name.
Command options
The options should follow the command name, separated by a space, and preceded by a
minus sign (-). Usually, multiple options may be grouped together immediately after a
single minus sign or separated by spaces and each preceded by a minus sign. Options
are typically used to modify the operation of the process.
2-6 AIX 7 Basics
V3.1
Student Notebook
Uempty Command arguments
The arguments follow the options, again separated by spaces. The order of the
arguments will depend on the command.
Example
All three elements are not required to be present at all times, for example:
$ ls just command
$ ls -l command and option
$ ls /tmp command and argument
Unit 2. Using the System 2-7