RUID vs EUID

In a UNIX system, one can easily become confused by the concepts of RUID and EUID. This note aims to clarify and differentiate between them to help users identify these identifiers more easily. Environment Setup To explore these concepts further, we will need to create an executable file and a plain-text file to observe how they behave in various scenarios. We can utilize the functions getpid, getuid, geteuid, getgid, and getegid to obtain information about the running process, including its PID, RUID, RGID, EUID, and EGID....

October 15, 2024

How to Install/Enable Openssh on Linux

Step 1: Install OpenSSH Server Software Package sudo yum –y install openssh-server openssh-clients Step 2: Starting SSH Service sudo systemctl start openssh-server Step 3: Check sshd status sudo systemctl status sshd To stop the service sudo systemctl stop sshd To enable OpenSSH service sudo systemctl enable sshd For Ubuntu First, update the system package sudo apt-get update Then, install the openssh server sudo apt-get install openssh-server To enable the service $\neq$ To start the service....

February 8, 2021