3 Basic Commands and Simple Shell Scripts Once you have your first Red Hat Enterprise Linux rhel



Download 1.85 Mb.
View original pdf
Page2/67
Date26.02.2024
Size1.85 Mb.
#63678
1   2   3   4   5   6   7   8   9   ...   67
Pablo Iranzo Gómez, Pedro Ibáñez Requena, Miguel Pérez Colino, Scott McCarty - Red Hat Enterprise Linux 9 Administration-Packt Publishing (2022) -chap 3 82 - 180
Using the root account
Regular users will not be able to make changes to the system, such as creating new users or adding new software to the whole system. To do so, we need a user with administrative privileges and for that, the default user is root. This user always exists in the system and its identifier – the User Id
(UID) – has the value In the previous installation, we configured the root password, making the account accessible through the console. To use it by logging into the system, we only need to type the user root into one of the terminals shown right next to the login, then hit Enter, and then provide its password, which won’t be displayed. This way, we will access the system as the administrator, root:
Figure 3.4 – The completed login process for root

Basic Commands and Simple Shell Scripts
62
Important Note
Above the login prompt, there is a message suggesting how the activation of the web console cockpit) can be done – the cockpit is a set of tools that enables web management for the system. The cockpit is covered in Chapter 4, Tools for Regular Operations.
Using and understanding the command prompt
The command line that appears once we have logged in and are waiting for our commands to be typed and run is called the command prompt.
In its default configuration, it will show the username and hostname between brackets to let us know with which user we are working. Next, we seethe path, in this case,
, which is the shortcut for the
user’s home directory
(in other words, /home/user for user, and root for root).
The last part and, probably the most important one, is the symbol before the prompt The $ symbol is used for regular users with no administrative privileges The # symbol is used for root or once a user has acquired administrative privileges.
Important Note
Be careful when using a prompt with the # sign, as you will be running as an administrator and the system will likely not stop you from damaging it.
Once we have identified ourselves within the system, we are logged in and have a running session. It is time to learn how to change from one user to the other in the following section.

Download 1.85 Mb.

Share with your friends:
1   2   3   4   5   6   7   8   9   ...   67




The database is protected by copyright ©ininet.org 2024
send message

    Main page